2015-02-07 00:32:25 +00:00
|
|
|
# Copyright (C) 2008, 2012 by Volker Lanz <vl@fidra.de>
|
2008-09-24 20:32:01 +01:00
|
|
|
#
|
2015-02-07 00:32:25 +00:00
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 3 of
|
|
|
|
# the License, or (at your option) any later version.
|
2008-09-24 20:32:01 +01:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2015-02-07 00:32:25 +00:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2008-12-27 22:12:42 +00:00
|
|
|
############################################
|
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
include(config/CMakeLists.txt)
|
|
|
|
include(gui/CMakeLists.txt)
|
2015-06-04 01:51:56 +01:00
|
|
|
include(util/CMakeLists.txt)
|
2015-02-18 12:05:42 +00:00
|
|
|
|
2016-01-06 13:56:32 +00:00
|
|
|
set(partitionmanager_SRCS
|
|
|
|
main.cpp
|
2015-02-18 12:05:42 +00:00
|
|
|
${CONFIG_SRC}
|
|
|
|
${GUI_SRC}
|
2015-06-04 01:51:56 +01:00
|
|
|
${UTIL_SRC}
|
2008-09-24 20:32:01 +01:00
|
|
|
)
|
|
|
|
|
2016-01-06 13:56:32 +00:00
|
|
|
file(GLOB partitionmanager_UIFILES config/*.ui gui/*.ui)
|
2008-12-27 22:12:42 +00:00
|
|
|
|
2016-01-06 13:56:32 +00:00
|
|
|
ki18n_wrap_ui(partitionmanager_SRCS ${partitionmanager_UIFILES})
|
2014-05-18 21:41:48 +01:00
|
|
|
|
2016-01-06 13:56:32 +00:00
|
|
|
kconfig_add_kcfg_files(partitionmanager_SRCS config.kcfgc)
|
2015-04-04 19:33:29 +01:00
|
|
|
install(FILES partitionmanager.kcfg DESTINATION ${KCFG_INSTALL_DIR})
|
2014-05-18 21:41:48 +01:00
|
|
|
|
2016-01-06 13:56:32 +00:00
|
|
|
############################################
|
|
|
|
|
|
|
|
add_executable(partitionmanager ${partitionmanager_SRCS} )
|
|
|
|
|
2016-01-29 16:41:51 +00:00
|
|
|
target_link_libraries(partitionmanager ${BLKID_LIBRARIES}
|
2015-02-18 12:05:42 +00:00
|
|
|
kpmcore
|
2015-06-04 01:51:56 +01:00
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::ConfigGui
|
2016-07-01 15:42:12 +01:00
|
|
|
KF5::ConfigWidgets
|
|
|
|
KF5::CoreAddons
|
2015-03-28 18:35:30 +00:00
|
|
|
KF5::Crash
|
|
|
|
KF5::I18n
|
|
|
|
KF5::IconThemes
|
2015-02-18 12:05:42 +00:00
|
|
|
KF5::JobWidgets
|
|
|
|
KF5::KIOWidgets
|
2016-07-01 15:42:12 +01:00
|
|
|
KF5::Service
|
2015-03-28 18:23:53 +00:00
|
|
|
KF5::WidgetsAddons
|
2015-02-18 12:05:42 +00:00
|
|
|
KF5::XmlGui
|
|
|
|
)
|
2008-12-27 22:12:42 +00:00
|
|
|
|
2016-01-29 16:41:51 +00:00
|
|
|
target_compile_definitions(partitionmanager PRIVATE -DCMAKE_INSTALL_FULL_LIBEXECDIR_KF5=\"${CMAKE_INSTALL_FULL_LIBEXECDIR_KF5}\")
|
|
|
|
|
2012-12-09 18:41:46 +00:00
|
|
|
install(TARGETS partitionmanager ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2017-04-09 00:28:04 +01:00
|
|
|
install(FILES org.kde.partitionmanager.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
|
2017-06-12 00:45:29 +01:00
|
|
|
install(FILES gui/partitionmanagerui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/partitionmanager)
|
2017-04-09 00:28:04 +01:00
|
|
|
install(PROGRAMS org.kde.partitionmanager.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2008-12-27 22:12:42 +00:00
|
|
|
############################################
|