1
by Philip Muškovac
Import upstream version 4.6.90 |
1 |
project(KDEBASE_RUNTIME) |
2 |
||
3 |
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked |
|
4 |
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) |
|
5 |
||
1.1.12
by Philip Muškovac
Import upstream version 4.8.80 |
6 |
include(CTest) |
7 |
include(CTestConfig.cmake) |
|
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
8 |
include(CheckIncludeFiles) |
9 |
include(CheckFunctionExists) |
|
1.1.12
by Philip Muškovac
Import upstream version 4.8.80 |
10 |
|
1
by Philip Muškovac
Import upstream version 4.6.90 |
11 |
if(WINCE) |
12 |
#Needs to be set because otherwise he wouldn't find kde parts |
|
13 |
set(KDE4_DATA_DIR "${CMAKE_PREFIX_PATH}/share/apps") |
|
14 |
add_definitions(-DKDELIBS_STATIC_LIBS) |
|
15 |
endif(WINCE) |
|
16 |
||
17 |
#search packages used by KDE |
|
1.1.20
by Jonathan Riddell
Import upstream version 4.9.95 |
18 |
find_package(KDE4 4.9.95 REQUIRED) |
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
19 |
include(KDE4Defaults) |
20 |
||
1
by Philip Muškovac
Import upstream version 4.6.90 |
21 |
if (WIN32) |
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
22 |
set (STRIGI_TYPE "OPTIONAL") |
1
by Philip Muškovac
Import upstream version 4.6.90 |
23 |
else () |
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
24 |
set (STRIGI_TYPE "REQUIRED") |
1
by Philip Muškovac
Import upstream version 4.6.90 |
25 |
endif () |
26 |
||
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
27 |
find_package(Strigi) |
28 |
set_package_properties(Strigi PROPERTIES DESCRIPTION "Desktop indexing and search support" |
|
29 |
URL "http://strigi.sourceforge.net" |
|
30 |
TYPE ${STRIGI_TYPE} |
|
31 |
) |
|
1
by Philip Muškovac
Import upstream version 4.6.90 |
32 |
|
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
33 |
find_package(KDeclarative QUIET CONFIG) |
34 |
set_package_properties(KDeclarative PROPERTIES DESCRIPTION "KDE Declarative (QML) support from kdelibs" |
|
35 |
URL "http://www.kde.org" |
|
36 |
TYPE REQUIRED |
|
37 |
PURPOSE "Required by corebindingsplugin (org.kde.plasma.core)" |
|
38 |
) |
|
1.1.12
by Philip Muškovac
Import upstream version 4.8.80 |
39 |
|
40 |
macro_optional_find_package(NepomukCore) |
|
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
41 |
set_package_properties(NepomukCore PROPERTIES DESCRIPTION "Nepomuk Core Libraries" |
42 |
URL "https://projects.kde.org/nepomuk-core" |
|
43 |
TYPE OPTIONAL |
|
44 |
) |
|
1
by Philip Muškovac
Import upstream version 4.6.90 |
45 |
|
46 |
macro_optional_find_package(SLP) |
|
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
47 |
set_package_properties(SLP PROPERTIES DESCRIPTION "SLP (Service Location Protocol) implementation" |
48 |
URL "http://www.openslp.org/" |
|
49 |
TYPE OPTIONAL |
|
50 |
PURPOSE "Provides SLP support in the network:/ kioslave." |
|
51 |
) |
|
52 |
||
53 |
find_package(LibAttica 0.1.4) |
|
54 |
set_package_properties(LibAttica PROPERTIES DESCRIPTION "A library to access Open Collaboration Service providers" |
|
55 |
URL "https://projects.kde.org/attica" |
|
56 |
TYPE REQUIRED |
|
57 |
PURPOSE "Attica is needed for the Get Hot New Stuff support" |
|
58 |
) |
|
59 |
||
60 |
macro_optional_find_package(QCA2 2.0.0) |
|
61 |
set_package_properties(QCA2 PROPERTIES DESCRIPTION "Support for remote plasma widgets" |
|
62 |
URL "http://delta.affinix.com/qca" |
|
63 |
TYPE OPTIONAL |
|
64 |
) |
|
1.1.5
by Jonathan Riddell
Import upstream version 4.7.90 |
65 |
|
1
by Philip Muškovac
Import upstream version 4.6.90 |
66 |
check_include_files(sys/wait.h HAVE_SYS_WAIT_H) |
67 |
check_include_files(sys/time.h HAVE_SYS_TIME_H) |
|
68 |
||
69 |
configure_file (config-runtime.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-runtime.h ) |
|
70 |
||
71 |
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) |
|
72 |
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) |
|
73 |
||
74 |
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDES}) |
|
75 |
||
76 |
# Build infrastructure |
|
77 |
add_subdirectory(cmake) |
|
78 |
||
79 |
# Background processes |
|
80 |
add_subdirectory(kpasswdserver) |
|
81 |
add_subdirectory(kdontchangethehostname) |
|
82 |
add_subdirectory(kglobalaccel) |
|
83 |
add_subdirectory(knotify) |
|
84 |
add_subdirectory(ktimezoned) |
|
1.1.5
by Jonathan Riddell
Import upstream version 4.7.90 |
85 |
|
1
by Philip Muškovac
Import upstream version 4.6.90 |
86 |
if(NOT WINCE) |
87 |
add_subdirectory(kuiserver) |
|
88 |
endif(NOT WINCE) |
|
89 |
add_subdirectory(kwalletd) |
|
1.1.5
by Jonathan Riddell
Import upstream version 4.7.90 |
90 |
|
1
by Philip Muškovac
Import upstream version 4.6.90 |
91 |
if ( UNIX ) |
92 |
add_subdirectory(soliduiserver) |
|
93 |
add_subdirectory(solidautoeject) |
|
94 |
add_subdirectory(solid-device-automounter) |
|
95 |
add_subdirectory(solid-networkstatus) |
|
96 |
endif ( UNIX ) |
|
1.1.9
by Felix Geyer
Import upstream version 4.8.1 |
97 |
|
1.1.12
by Philip Muškovac
Import upstream version 4.8.80 |
98 |
if(NepomukCore_FOUND) |
99 |
macro_optional_add_subdirectory(nepomuk) |
|
100 |
endif(NepomukCore_FOUND) |
|
1
by Philip Muškovac
Import upstream version 4.6.90 |
101 |
|
102 |
# Plugins/components required for basic utility |
|
103 |
if ( NOT WINCE ) |
|
104 |
add_subdirectory(kcontrol) |
|
105 |
endif ( NOT WINCE ) |
|
106 |
add_subdirectory(kioslave) |
|
107 |
add_subdirectory(kurifilter-plugins) |
|
108 |
add_subdirectory(phonon) |
|
1.1.29
by Michał Zając
Import upstream version 4.10.90 |
109 |
add_subdirectory(kimgio) |
1
by Philip Muškovac
Import upstream version 4.6.90 |
110 |
macro_optional_add_subdirectory(renamedlgplugins) |
111 |
||
112 |
# UI Helper applications |
|
113 |
add_subdirectory(drkonqi) |
|
114 |
add_subdirectory(kcmshell) |
|
115 |
add_subdirectory(kdebugdialog) |
|
1.1.28
by Jonathan Riddell
Import upstream version 4.10.80 |
116 |
add_subdirectory(khelpcenter) |
1
by Philip Muškovac
Import upstream version 4.6.90 |
117 |
add_subdirectory(knetattach) |
118 |
add_subdirectory(knewstuff) |
|
119 |
macro_optional_add_subdirectory(keditfiletype) |
|
120 |
if ( UNIX ) |
|
121 |
add_subdirectory(kdesu) |
|
122 |
endif ( UNIX ) |
|
123 |
||
124 |
# Command-line tools (e.g. for shell scripts) |
|
125 |
if ( UNIX ) |
|
126 |
add_subdirectory(kdeeject) |
|
127 |
endif ( UNIX ) |
|
128 |
add_subdirectory(kfile) |
|
129 |
add_subdirectory(kiconfinder) |
|
130 |
add_subdirectory(kioclient) |
|
131 |
add_subdirectory(kioexec) |
|
132 |
add_subdirectory(ktraderclient) |
|
133 |
add_subdirectory(kreadconfig) |
|
134 |
add_subdirectory(kmimetypefinder) |
|
135 |
if (Q_WS_X11) |
|
136 |
add_subdirectory(kstart) |
|
137 |
endif (Q_WS_X11) |
|
138 |
add_subdirectory(kquitapp) |
|
139 |
add_subdirectory(menu) |
|
140 |
if ( NOT WINCE ) |
|
141 |
add_subdirectory(plasma) |
|
142 |
endif ( NOT WINCE ) |
|
143 |
add_subdirectory(solid-hardware) |
|
144 |
||
145 |
# Platform-specific integration |
|
146 |
add_subdirectory(platforms) |
|
147 |
||
148 |
# Default settings, content and config |
|
149 |
add_subdirectory(l10n) |
|
150 |
add_subdirectory(localization) |
|
151 |
if(NOT WINCE) |
|
152 |
add_subdirectory(kde-menu) |
|
153 |
macro_optional_add_subdirectory(doc) |
|
154 |
endif(NOT WINCE) |
|
155 |
||
156 |
# Artwork |
|
157 |
add_subdirectory(desktoptheme) |
|
158 |
if ( NOT WINCE ) |
|
159 |
add_subdirectory(pics) |
|
160 |
endif ( NOT WINCE ) |
|
161 |
||
162 |
# KDE integration for attica |
|
163 |
if(LIBATTICA_FOUND) |
|
164 |
macro_optional_add_subdirectory(attica) |
|
165 |
endif(LIBATTICA_FOUND) |
|
166 |
||
1.1.30
by Philip Muškovac
Import upstream version 4.10.95 |
167 |
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) |
1
by Philip Muškovac
Import upstream version 4.6.90 |
168 |
|
169 |
########### install files ############### |
|
170 |
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/kde4 DESTINATION ${BIN_INSTALL_DIR}) |
|
1.1.19
by Jonathan Riddell
Import upstream version 4.9.90 |
171 |