1
# Copyright (C) 2008 by Volker Lanz <vl@fidra.de>
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the
15
# Free Software Foundation, Inc.,
16
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
############################################
20
file(GLOB partitionmanagerprivate_SRCS
29
file(GLOB partitionmanagerprivate_UIFILES gui/*.ui)
31
kde4_add_ui_files(partitionmanagerprivate_SRCS ${partitionmanagerprivate_UIFILES})
33
kde4_add_kcfg_files(partitionmanagerprivate_SRCS config.kcfgc)
35
kde4_add_library(partitionmanagerprivate SHARED ${partitionmanagerprivate_SRCS})
37
target_link_libraries(partitionmanagerprivate ${KDE4_KDECORE_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} ${LIBPARTED_LIBS} ${UUID_LIBRARIES} ${BLKID_LIBRARIES})
39
install(TARGETS partitionmanagerprivate DESTINATION ${LIB_INSTALL_DIR})
41
############################################
43
file(GLOB partitionmanager_SRCS main.cpp)
45
kde4_add_executable(partitionmanager ${partitionmanager_SRCS})
47
target_link_libraries(partitionmanager partitionmanagerprivate)
49
install(TARGETS partitionmanager DESTINATION ${BIN_INSTALL_DIR})
50
install(FILES gui/partitionmanagerui.rc DESTINATION ${DATA_INSTALL_DIR}/partitionmanager)
51
install(FILES partitionmanager.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
53
############################################
55
option(PARTMAN_KPART "Build a kpart for KDE Partition Manager" OFF)
58
file(GLOB partitionmanagerpart_SRCS kpart/partitionmanagerpart.cpp)
60
kde4_add_plugin(partitionmanagerpart ${partitionmanagerpart_SRCS})
62
target_link_libraries(partitionmanagerpart
65
partitionmanagerprivate
68
install(TARGETS partitionmanagerpart DESTINATION ${PLUGIN_INSTALL_DIR})
69
install(FILES kpart/partitionmanagerpart.desktop DESTINATION ${SERVICES_INSTALL_DIR})
70
install(FILES kpart/partitionmanagerpart.rc DESTINATION ${DATA_INSTALL_DIR}/partitionmanagerpart)
72
option(PARTMAN_KPART_TEST "Build a kpart test application for KDE Partition Manager" OFF)
74
if(PARTMAN_KPART_TEST)
75
add_subdirectory(kpart/test)
76
endif(PARTMAN_KPART_TEST)