blob: c437ff6f4b8a7e14c9bcc8e057db6e7c6a1c1b0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# Possible options:
# - WITH_EGROUPWARE
# - WITH_SLOX
# - WITH_KOLAB
# - WITH_NEWEXCHANGE
# - WITH_GROUPWISE
# - WITH_SCALIX
tde_import( libkmime )
tde_import( ktnef )
tde_import( libkcal )
tde_import( libtdepim )
tde_import( knotes )
tde_import( tderesources )
if( WITH_KOLAB OR WITH_GROUPWISE OR WITH_SCALIX )
tde_import( libtdenetwork )
tde_import( certmanager )
tde_import( libkpimidentities )
endif()
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkpimidentities
${CMAKE_SOURCE_DIR}/libtdepim
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/knotes
${CMAKE_SOURCE_DIR}/tderesources/lib
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
groupwarewizard.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR} )
##### helper ####################################
macro( process_kcfg _who _out _path _kcfg _kcfgc )
add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/${_path}/${_out}
COMMAND
mkdir -p ${CMAKE_BINARY_DIR}/${_path}
COMMAND ${KDE3_KCFGC_EXECUTABLE}
-d ${CMAKE_BINARY_DIR}/${_path}
${CMAKE_SOURCE_DIR}/${_path}/${_kcfg}
${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc}
DEPENDS
${CMAKE_SOURCE_DIR}/${_path}/${_kcfg}
${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc} )
set_property( SOURCE ${_who} APPEND
PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/${_path}/${_out} )
endmacro()
######## egroupwarewizard #######################
if( WITH_EGROUPWARE )
install( FILES egroupware.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
process_kcfg( egroupwarewizard.cpp kabc_egroupwareprefs.h tderesources/egroupware
tderesources_kabc_egroupware.kcfg kabc_egroupwareprefs.kcfgc )
process_kcfg( egroupwarewizard.cpp kcal_egroupwareprefs.h tderesources/egroupware
tderesources_kcal_egroupware.kcfg kcal_egroupwareprefs.kcfgc )
process_kcfg( egroupwarewizard.cpp knotes_egroupwareprefs.h tderesources/egroupware
tderesources_knotes_egroupware.kcfg knotes_egroupwareprefs.kcfgc )
tde_add_library( egroupwarewizard SHARED NO_EXPORT
SOURCES
egroupwarewizard.cpp egroupwareconfig.kcfgc
LINK kcal_xmlrpc-shared kabc_xmlrpc-shared knotes_xmlrpc-shared
DESTINATION ${PLUGIN_INSTALL_DIR} )
tde_add_executable( egroupwarewizard
SOURCES egroupwaremain.cpp
LINK egroupwarewizard-shared
DESTINATION ${BIN_INSTALL_DIR} )
set( EGROUPWAREWIZARD_LIBRARY egroupwarewizard-shared )
endif()
######## sloxwizard #############################
if( WITH_SLOX )
install( FILES slox.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
process_kcfg( sloxwizard.cpp kabcsloxprefs.h tderesources/slox
tderesources_kabc_slox.kcfg kabcsloxprefs.kcfgc )
process_kcfg( sloxwizard.cpp kcalsloxprefs.h tderesources/slox
tderesources_kcal_slox.kcfg kcalsloxprefs.kcfgc )
tde_add_library( sloxwizard SHARED NO_EXPORT
SOURCES
sloxwizard.cpp sloxconfig.kcfgc
LINK kcal_slox-shared kabc_slox-shared
DESTINATION ${PLUGIN_INSTALL_DIR} )
tde_add_executable( sloxwizard
SOURCES sloxmain.cpp
LINK sloxwizard-shared
DESTINATION ${BIN_INSTALL_DIR} )
set( SLOXWIZARD_LIBRARY sloxwizard-shared )
endif()
######## kolabwizard ############################
if( WITH_KOLAB )
install( FILES kolab.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
tde_add_library( kolabwizard SHARED NO_EXPORT
SOURCES
kolabwizard.cpp kmailchanges.cpp kolabconfig.kcfgc
kolabkmailchanges.cpp
LINK
kcalkolab-shared kabckolab-shared knoteskolab-shared
kpimidentities-shared
DESTINATION ${PLUGIN_INSTALL_DIR} )
tde_add_executable( kolabwizard
SOURCES kolabmain.cpp
LINK kolabwizard-shared
DESTINATION ${BIN_INSTALL_DIR} )
set( KOLABWIZARD_LIBRARY kolabwizard-shared )
endif( )
######## exchangewizard #########################
if( WITH_NEWEXCHANGE )
tde_add_library( exchangewizard SHARED NO_EXPORT
SOURCES exchangewizard.cpp
LINK kcal_newexchange-shared
DESTINATION ${PLUGIN_INSTALL_DIR} )
tde_add_executable( exchangewizard
SOURCES exchangemain.cpp
LINK exchangewizard-shared
DESTINATION ${BIN_INSTALL_DIR} )
set( EXCHANGEWIZARD_LIBRARY exchangewizard-shared )
endif()
######## groupwisewizard ########################
if( WITH_GROUPWISE )
install( FILES groupwise.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
process_kcfg( groupwisewizard.cpp kcal_groupwiseprefsbase.h tderesources/groupwise
tderesources_kcal_groupwise.kcfg kcal_groupwiseprefsbase.kcfgc )
process_kcfg( groupwisewizard.cpp kabc_groupwiseprefs.h tderesources/groupwise
tderesources_kabc_groupwise.kcfg kabc_groupwiseprefs.kcfgc )
tde_add_library( groupwisewizard SHARED AUTOMOC NO_EXPORT
SOURCES
groupwisewizard.cpp groupwiseconfig.kcfgc kmailchanges.cpp
LINK kcal_groupwise-shared kabc_groupwise-shared kpimidentities-shared
DESTINATION ${PLUGIN_INSTALL_DIR} )
tde_add_executable( groupwisewizard
SOURCES groupwisemain.cpp
LINK groupwisewizard-shared
DESTINATION ${BIN_INSTALL_DIR} )
endif()
######## scalixwizard ###########################
if( WITH_SCALIX )
install( FILES scalix.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
tde_add_library( scalixwizard SHARED NO_EXPORT
SOURCES
scalixwizard.cpp kmailchanges.cpp scalixconfig.kcfgc
scalixkmailchanges.cpp
LINK kcalscalix-shared kabcscalix-shared kpimidentities-shared
DESTINATION ${PLUGIN_INSTALL_DIR} )
tde_add_executable( scalixwizard
SOURCES scalixmain.cpp
LINK scalixwizard-shared
DESTINATION ${BIN_INSTALL_DIR} )
endif()
##### groupwarewizard (executable) ##############
if( WITH_EGROUPWARE OR WITH_SLOX OR WITH_KOLAB OR WITH_NEWEXCHANGE )
configure_file( wizards-config.h.cmake wizards-config.h @ONLY )
tde_add_executable( groupwarewizard AUTOMOC
SOURCES
groupwarewizard.cpp main.cpp overviewpage.cpp
LINK
${EGROUPWAREWIZARD_LIBRARY} ${SLOXWIZARD_LIBRARY}
${KOLABWIZARD_LIBRARY} ${EXCHANGEWIZARD_LIBRARY}
DESTINATION ${BIN_INSTALL_DIR} )
endif()
|