partitionmanager/src/CMakeLists.txt

72 lines
2.3 KiB
CMake
Raw Normal View History

2015-02-07 00:32:25 +00:00
# Copyright (C) 2008, 2012 by Volker Lanz <vl@fidra.de>
#
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.
#
# 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/>.
############################################
file(GLOB partitionmanagerprivate_SRCS
backend/*.cpp
core/*.cpp
util/*.cpp
ops/*.cpp
jobs/*.cpp
fs/*.cpp
gui/*.cpp
config/*.cpp
)
file(GLOB partitionmanagerprivate_UIFILES config/*.ui gui/*.ui)
ki18n_wrap_ui(partitionmanagerprivate_SRCS ${partitionmanagerprivate_UIFILES})
kconfig_add_kcfg_files(partitionmanagerprivate_SRCS config.kcfgc)
install(FILES config.kcfg DESTINATION ${KCFG_INSTALL_DIR})
add_library(partitionmanagerprivate SHARED ${partitionmanagerprivate_SRCS})
generate_export_header(partitionmanagerprivate EXPORT_FILE_NAME libpartitionmanager_export.h)
target_link_libraries( partitionmanagerprivate libfatlabel
${UUID_LIBRARIES} ${BLKID_LIBRARIES} ${LIBATASMART_LIBRARIES}
KF5::ConfigCore
KF5::ConfigGui
2014-11-14 15:05:54 +00:00
KF5::Crash
KF5::I18n
KF5::IconThemes
KF5::JobWidgets
KF5::KIOCore
KF5::KIOWidgets
KF5::XmlGui
KF5::WidgetsAddons
KF5::WindowSystem
)
install(TARGETS partitionmanagerprivate ${INSTALL_TARGETS_DEFAULT_ARGS})
############################################
file(GLOB partitionmanager_SRCS main.cpp)
add_executable(partitionmanager ${partitionmanager_SRCS})
target_link_libraries(partitionmanager partitionmanagerprivate)
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)
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})
############################################
add_subdirectory(plugins)