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(backend/CMakeLists.txt)
|
|
|
|
include(core/CMakeLists.txt)
|
|
|
|
include(util/CMakeLists.txt)
|
|
|
|
include(ops/CMakeLists.txt)
|
|
|
|
include(jobs/CMakeLists.txt)
|
|
|
|
include(fs/CMakeLists.txt)
|
|
|
|
include(gui/CMakeLists.txt)
|
|
|
|
|
|
|
|
set(kpmcore_SRCS
|
|
|
|
${BACKEND_SRC}
|
|
|
|
${FS_SRC}
|
|
|
|
${CORE_SRC}
|
|
|
|
${OPS_SRC}
|
|
|
|
${JOBS_SRC}
|
2015-03-28 18:23:53 +00:00
|
|
|
${UTIL_SRC}
|
2015-02-18 12:05:42 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(kpmgui_SRCS
|
|
|
|
${CONFIG_SRC}
|
|
|
|
${GUI_SRC}
|
2015-03-28 18:23:53 +00:00
|
|
|
${UTILGUI_SRC}
|
2008-09-24 20:32:01 +01:00
|
|
|
)
|
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
file(GLOB kpmcore_UIFILES config/*.ui)
|
|
|
|
file(GLOB kpmgui_UIFILES gui/*.ui)
|
2008-12-27 22:12:42 +00:00
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
ki18n_wrap_ui(kpmcore_SRCS ${kpmcore_UIFILES})
|
|
|
|
ki18n_wrap_ui(kpmgui_SRCS ${kpmgui_UIFILES})
|
2014-05-18 21:41:48 +01:00
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
kconfig_add_kcfg_files(kpmcore_SRCS config.kcfgc)
|
|
|
|
kconfig_add_kcfg_files(kpmgui_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
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
add_library(kpmcore SHARED ${kpmcore_SRCS})
|
|
|
|
generate_export_header(kpmcore EXPORT_FILE_NAME libpartitionmanager_export.h)
|
2015-04-29 00:39:36 +01:00
|
|
|
target_link_libraries( kpmcore
|
2015-02-18 12:05:42 +00:00
|
|
|
${UUID_LIBRARIES} ${BLKID_LIBRARIES} ${LIBATASMART_LIBRARIES}
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::ConfigGui
|
|
|
|
KF5::Crash
|
|
|
|
KF5::I18n
|
|
|
|
KF5::IconThemes
|
|
|
|
KF5::KIOCore
|
2015-03-28 18:23:53 +00:00
|
|
|
KF5::Service
|
2014-05-18 21:41:48 +01:00
|
|
|
)
|
2008-12-27 22:12:42 +00:00
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
add_library(kpmgui SHARED ${kpmgui_SRCS})
|
2015-03-28 00:43:38 +00:00
|
|
|
generate_export_header(kpmgui EXPORT_FILE_NAME libpartitionmanagergui_export.h)
|
2015-02-18 12:05:42 +00:00
|
|
|
target_link_libraries( kpmgui
|
|
|
|
kpmcore
|
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
|
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
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
install(TARGETS kpmcore kpmgui ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2008-12-27 22:12:42 +00:00
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
############################################
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-02-18 12:05:42 +00:00
|
|
|
add_executable(partitionmanager main.cpp)
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-03-28 18:35:30 +00:00
|
|
|
target_link_libraries(partitionmanager kpmgui)
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2012-12-09 18:41:46 +00:00
|
|
|
install(TARGETS partitionmanager ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2014-11-23 10:59:35 +00:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.PartitionManager.appdata.xml DESTINATION share/appdata)
|
2009-01-09 10:11:36 +00:00
|
|
|
install(FILES gui/partitionmanagerui.rc DESTINATION ${DATA_INSTALL_DIR}/partitionmanager)
|
2014-11-20 09:35:26 +00: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
|
|
|
############################################
|
|
|
|
|
2010-03-01 23:08:53 +00:00
|
|
|
add_subdirectory(plugins)
|