~ubuntu-branches/ubuntu/karmic/partitionmanager/karmic

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-01-23 17:57:36 UTC
  • Revision ID: james.westby@ubuntu.com-20090123175736-2ltrhgg3m55dokbm
Tags: upstream-1.0.0~beta1a
ImportĀ upstreamĀ versionĀ 1.0.0~beta1a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2008 by Volker Lanz <vl@fidra.de>
 
2
#
 
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.
 
7
#
 
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.
 
12
#
 
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
 
17
 
 
18
############################################
 
19
 
 
20
file(GLOB partitionmanagerprivate_SRCS
 
21
        core/*.cpp
 
22
        util/*.cpp
 
23
        ops/*.cpp
 
24
        jobs/*.cpp
 
25
        fs/*.cpp
 
26
        gui/*.cpp
 
27
)
 
28
 
 
29
file(GLOB partitionmanagerprivate_UIFILES gui/*.ui)
 
30
 
 
31
kde4_add_ui_files(partitionmanagerprivate_SRCS ${partitionmanagerprivate_UIFILES})
 
32
 
 
33
kde4_add_kcfg_files(partitionmanagerprivate_SRCS config.kcfgc)
 
34
 
 
35
kde4_add_library(partitionmanagerprivate SHARED ${partitionmanagerprivate_SRCS})
 
36
 
 
37
target_link_libraries(partitionmanagerprivate ${KDE4_KDECORE_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} ${LIBPARTED_LIBS} ${UUID_LIBRARIES} ${BLKID_LIBRARIES})
 
38
 
 
39
install(TARGETS partitionmanagerprivate DESTINATION ${LIB_INSTALL_DIR})
 
40
 
 
41
############################################
 
42
 
 
43
file(GLOB partitionmanager_SRCS main.cpp)
 
44
 
 
45
kde4_add_executable(partitionmanager ${partitionmanager_SRCS})
 
46
 
 
47
target_link_libraries(partitionmanager partitionmanagerprivate)
 
48
 
 
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})
 
52
 
 
53
############################################
 
54
 
 
55
option(PARTMAN_KPART "Build a kpart for KDE Partition Manager" OFF)
 
56
 
 
57
if(PARTMAN_KPART)
 
58
        file(GLOB partitionmanagerpart_SRCS kpart/partitionmanagerpart.cpp)
 
59
 
 
60
        kde4_add_plugin(partitionmanagerpart ${partitionmanagerpart_SRCS})
 
61
 
 
62
        target_link_libraries(partitionmanagerpart
 
63
                ${KDE4_KPARTS_LIBS}
 
64
                ${KDE4_KDECORE_LIBS}
 
65
                partitionmanagerprivate
 
66
        )
 
67
 
 
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)
 
71
 
 
72
        option(PARTMAN_KPART_TEST "Build a kpart test application for KDE Partition Manager" OFF)
 
73
 
 
74
        if(PARTMAN_KPART_TEST)
 
75
                add_subdirectory(kpart/test)
 
76
        endif(PARTMAN_KPART_TEST)
 
77
 
 
78
endif(PARTMAN_KPART)
 
79