summaryrefslogtreecommitdiffstats
path: root/project/cmake/scripts/linux/Install.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/scripts/linux/Install.cmake')
-rw-r--r--project/cmake/scripts/linux/Install.cmake367
1 files changed, 0 insertions, 367 deletions
diff --git a/project/cmake/scripts/linux/Install.cmake b/project/cmake/scripts/linux/Install.cmake
deleted file mode 100644
index 43e2e5e..0000000
--- a/project/cmake/scripts/linux/Install.cmake
+++ /dev/null
@@ -1,367 +0,0 @@
1if(X_FOUND)
2 set(USE_X11 1)
3else()
4 set(USE_X11 0)
5endif()
6if(OPENGL_FOUND)
7 set(USE_OPENGL 1)
8else()
9 set(USE_OPENGL 0)
10endif()
11if(OPENGLES_FOUND)
12 set(USE_OPENGLES 1)
13else()
14 set(USE_OPENGLES 0)
15endif()
16
17# CMake config
18set(APP_PREFIX ${prefix})
19set(APP_LIB_DIR ${libdir}/${APP_NAME_LC})
20set(APP_DATA_DIR ${datarootdir}/${APP_NAME_LC})
21set(APP_INCLUDE_DIR ${includedir}/${APP_NAME_LC})
22set(CXX11_SWITCH "-std=c++11")
23
24# Set XBMC_STANDALONE_SH_PULSE so we can insert PulseAudio block into kodi-standalone
25if(EXISTS ${CORE_SOURCE_DIR}/tools/Linux/kodi-standalone.sh.pulse)
26 if(ENABLE_PULSEAUDIO AND PULSEAUDIO_FOUND)
27 file(READ "${CORE_SOURCE_DIR}/tools/Linux/kodi-standalone.sh.pulse" pulse_content)
28 set(XBMC_STANDALONE_SH_PULSE ${pulse_content})
29 endif()
30endif()
31
32# Configure startup scripts
33configure_file(${CORE_SOURCE_DIR}/tools/Linux/kodi.sh.in
34 ${CORE_BUILD_DIR}/scripts/${APP_NAME_LC} @ONLY)
35configure_file(${CORE_SOURCE_DIR}/tools/Linux/kodi-standalone.sh.in
36 ${CORE_BUILD_DIR}/scripts/${APP_NAME_LC}-standalone @ONLY)
37
38# Configure cmake files
39configure_file(${PROJECT_SOURCE_DIR}/KodiConfig.cmake.in
40 ${CORE_BUILD_DIR}/scripts/${APP_NAME}Config.cmake @ONLY)
41
42# Configure xsession entry
43configure_file(${CORE_SOURCE_DIR}/tools/Linux/kodi-xsession.desktop.in
44 ${CORE_BUILD_DIR}/${APP_NAME_LC}.desktop @ONLY)
45
46# Install app
47install(TARGETS ${APP_NAME_LC}
48 DESTINATION ${libdir}/${APP_NAME_LC}
49 COMPONENT kodi-bin)
50if(ENABLE_X11 AND XRANDR_FOUND)
51 install(TARGETS ${APP_NAME_LC}-xrandr
52 DESTINATION ${libdir}/${APP_NAME_LC}
53 COMPONENT kodi-bin)
54endif()
55
56# Install scripts
57install(PROGRAMS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/scripts/${APP_NAME_LC}
58 ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/scripts/${APP_NAME_LC}-standalone
59 DESTINATION ${bindir}
60 COMPONENT kodi-bin)
61
62# Install libraries
63foreach(library ${LIBRARY_FILES})
64 get_filename_component(dir ${library} DIRECTORY)
65 string(REPLACE "${CMAKE_BINARY_DIR}/" "" dir ${dir})
66 install(PROGRAMS ${library}
67 DESTINATION ${libdir}/${APP_NAME_LC}/${dir}
68 COMPONENT kodi-bin)
69endforeach()
70
71# Install add-ons, fonts, icons, keyboard maps, keymaps, etc
72# (addons, media, system, userdata folders in share/kodi/)
73foreach(file ${install_data})
74 get_filename_component(dir ${file} DIRECTORY)
75 install(FILES ${CMAKE_BINARY_DIR}/${file}
76 DESTINATION ${datarootdir}/${APP_NAME_LC}/${dir}
77 COMPONENT kodi)
78endforeach()
79
80# Install xsession entry
81install(FILES ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/${APP_NAME_LC}.desktop
82 DESTINATION ${datarootdir}/xsessions
83 COMPONENT kodi)
84
85# Install desktop entry
86install(FILES ${CORE_SOURCE_DIR}/tools/Linux/kodi.desktop
87 DESTINATION ${datarootdir}/applications
88 COMPONENT kodi)
89
90# Install icons
91install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon16x16.png
92 RENAME ${APP_NAME_LC}.png
93 DESTINATION ${datarootdir}/icons/hicolor/16x16/apps
94 COMPONENT kodi)
95install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon22x22.png
96 RENAME ${APP_NAME_LC}.png
97 DESTINATION ${datarootdir}/icons/hicolor/22x22/apps
98 COMPONENT kodi)
99install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon24x24.png
100 RENAME ${APP_NAME_LC}.png
101 DESTINATION ${datarootdir}/icons/hicolor/24x24/apps
102 COMPONENT kodi)
103install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon32x32.png
104 RENAME ${APP_NAME_LC}.png
105 DESTINATION ${datarootdir}/icons/hicolor/32x32/apps
106 COMPONENT kodi)
107install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon48x48.png
108 RENAME ${APP_NAME_LC}.png
109 DESTINATION ${datarootdir}/icons/hicolor/48x48/apps
110 COMPONENT kodi)
111install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon64x64.png
112 RENAME ${APP_NAME_LC}.png
113 DESTINATION ${datarootdir}/icons/hicolor/64x64/apps
114 COMPONENT kodi)
115install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon128x128.png
116 RENAME ${APP_NAME_LC}.png
117 DESTINATION ${datarootdir}/icons/hicolor/128x128/apps
118 COMPONENT kodi)
119install(FILES ${CORE_SOURCE_DIR}/tools/Linux/packaging/media/icon256x256.png
120 RENAME ${APP_NAME_LC}.png
121 DESTINATION ${datarootdir}/icons/hicolor/256x256/apps
122 COMPONENT kodi)
123install(CODE "execute_process(COMMAND gtk-update-icon-cache -f -q -t
124 $ENV{DESTDIR}${datarootdir}/icons/hicolor ERROR_QUIET)"
125 COMPONENT kodi)
126
127# Install docs
128install(FILES ${CORE_SOURCE_DIR}/copying.txt
129 ${CORE_SOURCE_DIR}/LICENSE.GPL
130 ${CORE_SOURCE_DIR}/version.txt
131 ${CORE_SOURCE_DIR}/docs/README.linux
132 DESTINATION ${datarootdir}/doc/${APP_NAME_LC}
133 COMPONENT kodi)
134
135install(FILES ${CORE_SOURCE_DIR}/privacy-policy.txt
136 DESTINATION ${datarootdir}/${APP_NAME_LC}
137 COMPONENT kodi)
138
139# Install kodi-tools-texturepacker
140if(NOT WITH_TEXTUREPACKER)
141 install(PROGRAMS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/texturepacker/TexturePacker
142 DESTINATION ${bindir}
143 COMPONENT kodi-tools-texturepacker)
144endif()
145
146# Install kodi-addon-dev headers
147install(FILES ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_vfs_types.h
148 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_vfs_utils.hpp
149 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_adsp.h
150 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_audioengine.h
151 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h
152 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_inputstream.h
153 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_peripheral.h
154 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_addon.h
155 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_codec.h
156 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libXBMC_pvr.h
157 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_game.h
158 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_cpp_dll.h
159 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_dll.h
160 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_addon_types.h
161 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_codec_types.h
162 ${CORE_SOURCE_DIR}/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxPacket.h
163 ${CORE_SOURCE_DIR}/xbmc/filesystem/IFileTypes.h
164 ${CORE_SOURCE_DIR}/xbmc/input/XBMC_vkeys.h
165 DESTINATION ${includedir}/${APP_NAME_LC}
166 COMPONENT kodi-addon-dev)
167
168# Install kodi-addon-dev add-on bindings
169install(FILES ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/scripts/${APP_NAME}Config.cmake
170 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/AddonHelpers.cmake
171 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/AddOptions.cmake
172 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/ArchSetup.cmake
173 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/CheckCommits.cmake
174 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/CheckTargetPlatform.cmake
175 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/GenerateVersionedFiles.cmake
176 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/GeneratorSetup.cmake
177 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/HandleDepends.cmake
178 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/Macros.cmake
179 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/PrepareEnv.cmake
180 ${CORE_SOURCE_DIR}/project/cmake/scripts/common/ProjectMacros.cmake
181 ${CORE_SOURCE_DIR}/project/cmake/scripts/linux/PathSetup.cmake
182 DESTINATION ${datarootdir}/${APP_NAME_LC}/cmake
183 COMPONENT kodi-addon-dev)
184
185# Install kodi-audio-dev
186install(FILES ${CORE_SOURCE_DIR}/xbmc/cores/AudioEngine/Utils/AEChannelData.h
187 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_dll.h
188 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_adsp_types.h
189 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_dll.h
190 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audiodec_types.h
191 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_dll.h
192 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_audioenc_types.h
193 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_audioengine_types.h
194 DESTINATION ${includedir}/${APP_NAME_LC}
195 COMPONENT kodi-audio-dev)
196
197if(ENABLE_EVENTCLIENTS)
198 # Install kodi-eventclients-common BT python files
199 install(PROGRAMS ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/bt/__init__.py
200 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/bt/bt.py
201 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/bt/hid.py
202 DESTINATION lib/python2.7/dist-packages/${APP_NAME_LC}/bt
203 COMPONENT kodi-eventclients-common)
204
205 # Install kodi-eventclients-common PS3 python files
206 install(PROGRAMS ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/ps3/__init__.py
207 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/ps3/keymaps.py
208 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/ps3/sixaxis.py
209 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/ps3/sixpair.py
210 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/ps3/sixwatch.py
211 DESTINATION lib/python2.7/dist-packages/${APP_NAME_LC}/ps3
212 COMPONENT kodi-eventclients-common)
213
214 # Install kodi-eventclients-common python files
215 file(WRITE ${CMAKE_BINARY_DIR}/packages/deb/defs.py ICON_PATH="usr/share/pixmaps/${APP_NAME_LC}/")
216 install(PROGRAMS ${CMAKE_BINARY_DIR}/packages/deb/defs.py
217 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/__init__.py
218 "${CORE_SOURCE_DIR}/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py"
219 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/xbmcclient.py
220 ${CORE_SOURCE_DIR}/tools/EventClients/lib/python/zeroconf.py
221 DESTINATION lib/python2.7/dist-packages/${APP_NAME_LC}
222 COMPONENT kodi-eventclients-common)
223
224 # Install kodi-eventclients-common icons
225 install(FILES ${CORE_SOURCE_DIR}/tools/EventClients/icons/bluetooth.png
226 ${CORE_SOURCE_DIR}/tools/EventClients/icons/phone.png
227 ${CORE_SOURCE_DIR}/tools/EventClients/icons/mail.png
228 ${CORE_SOURCE_DIR}/tools/EventClients/icons/mouse.png
229 DESTINATION ${datarootdir}/pixmaps/${APP_NAME_LC}
230 COMPONENT kodi-eventclients-common)
231
232 # Install kodi-eventclients-dev headers
233 install(FILES ${CORE_SOURCE_DIR}/tools/EventClients/lib/c++/xbmcclient.h
234 DESTINATION ${includedir}/${APP_NAME_LC}
235 COMPONENT kodi-eventclients-dev)
236
237 # Install kodi-eventclients-dev C# examples
238 install(FILES "${CORE_SOURCE_DIR}/tools/EventClients/examples/c#/XBMCDemoClient1.cs"
239 DESTINATION "${docdir}/${APP_NAME_LC}-eventclients-dev/examples/C#"
240 COMPONENT kodi-eventclients-dev)
241
242 # Install kodi-eventclients-dev C++ examples
243 install(FILES ${CORE_SOURCE_DIR}/tools/EventClients/examples/c++/example_notification.cpp
244 ${CORE_SOURCE_DIR}/tools/EventClients/examples/c++/example_log.cpp
245 ${CORE_SOURCE_DIR}/tools/EventClients/examples/c++/example_button1.cpp
246 ${CORE_SOURCE_DIR}/tools/EventClients/examples/c++/example_mouse.cpp
247 ${CORE_SOURCE_DIR}/tools/EventClients/examples/c++/example_button2.cpp
248 DESTINATION ${docdir}/${APP_NAME_LC}-eventclients-dev/examples/C++
249 COMPONENT kodi-eventclients-dev)
250
251 # Install kodi-eventclients-dev java examples
252 install(FILES ${CORE_SOURCE_DIR}/tools/EventClients/examples/java/XBMCDemoClient1.java
253 DESTINATION ${docdir}/${APP_NAME_LC}-eventclients-dev/examples/java
254 COMPONENT kodi-eventclients-dev)
255
256 # Install kodi-eventclients-dev python examples
257 install(PROGRAMS ${CORE_SOURCE_DIR}/tools/EventClients/examples/python/example_mouse.py
258 ${CORE_SOURCE_DIR}/tools/EventClients/examples/python/example_button1.py
259 ${CORE_SOURCE_DIR}/tools/EventClients/examples/python/example_notification.py
260 ${CORE_SOURCE_DIR}/tools/EventClients/examples/python/example_action.py
261 ${CORE_SOURCE_DIR}/tools/EventClients/examples/python/example_button2.py
262 ${CORE_SOURCE_DIR}/tools/EventClients/examples/python/example_simple.py
263 DESTINATION ${docdir}/${APP_NAME_LC}-eventclients-dev/examples/python
264 COMPONENT kodi-eventclients-dev)
265
266 # Install kodi-eventclients-ps3
267 install(PROGRAMS "${CORE_SOURCE_DIR}/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py"
268 RENAME ${APP_NAME_LC}-ps3remote
269 DESTINATION ${bindir}
270 COMPONENT kodi-eventclients-ps3)
271
272 # Install kodi-eventclients-wiiremote
273 install(PROGRAMS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/WiiRemote/${APP_NAME_LC}-wiiremote
274 DESTINATION ${bindir}
275 COMPONENT kodi-eventclients-wiiremote)
276
277 # Install kodi-eventclients-xbmc-send
278 install(PROGRAMS "${CORE_SOURCE_DIR}/tools/EventClients/Clients/Kodi Send/kodi-send.py"
279 RENAME ${APP_NAME_LC}-send
280 DESTINATION ${bindir}
281 COMPONENT kodi-eventclients-xbmc-send)
282endif()
283
284# Install kodi-inputstream-dev
285install(FILES ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_dll.h
286 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_inputstream_types.h
287 DESTINATION ${includedir}/${APP_NAME_LC}
288 COMPONENT kodi-inputstream-dev)
289
290# Install kodi-pvr-dev
291install(FILES ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_epg_types.h
292 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h
293 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_types.h
294 DESTINATION ${includedir}/${APP_NAME_LC}
295 COMPONENT kodi-pvr-dev)
296
297# Install kodi-screensaver-dev
298install(FILES ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_dll.h
299 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_scr_types.h
300 DESTINATION ${includedir}/${APP_NAME_LC}
301 COMPONENT kodi-screensaver-dev)
302
303# Install kodi-visualization-dev
304install(FILES ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_dll.h
305 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_vis_types.h
306 DESTINATION ${includedir}/${APP_NAME_LC}
307 COMPONENT kodi-visualization-dev)
308
309# Install kodi-peripheral-dev
310install(FILES ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_callbacks.h
311 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_dll.h
312 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_types.h
313 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_peripheral_utils.hpp
314 DESTINATION ${includedir}/${APP_NAME_LC}
315 COMPONENT kodi-peripheral-dev)
316
317# Install kodi-game-dev
318install(FILES ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_callbacks.h
319 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_dll.h
320 ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h
321 DESTINATION ${includedir}/${APP_NAME_LC}
322 COMPONENT kodi-game-dev)
323
324
325# Install XBT skin files
326foreach(texture ${XBT_FILES})
327 string(REPLACE "${CMAKE_BINARY_DIR}/" "" dir ${texture})
328 get_filename_component(dir ${dir} DIRECTORY)
329 install(FILES ${texture}
330 DESTINATION ${datarootdir}/${APP_NAME_LC}/${dir}
331 COMPONENT kodi)
332endforeach()
333
334# Install extra stuff if it exists
335if(EXISTS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/extra-installs)
336 install(CODE "file(STRINGS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/extra-installs dirs)
337 foreach(dir \${dirs})
338 file(GLOB_RECURSE FILES RELATIVE ${CMAKE_BINARY_DIR} \${dir}/*)
339 foreach(file \${FILES})
340 get_filename_component(dir \${file} DIRECTORY)
341 file(INSTALL \${file} DESTINATION ${datarootdir}/${APP_NAME_LC}/\${dir})
342 endforeach()
343 endforeach()")
344endif()
345
346if(NOT "$ENV{DESTDIR}" STREQUAL "")
347 set(DESTDIR ${CMAKE_BINARY_DIR}/$ENV{DESTDIR})
348endif()
349foreach(subdir ${build_dirs})
350 if(NOT subdir MATCHES kodi-platform)
351 string(REPLACE " " ";" subdir ${subdir})
352 list(GET subdir 0 id)
353 install(CODE "execute_process(COMMAND ${CMAKE_MAKE_PROGRAM} -C ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/${id}/src/${id}-build install DESTDIR=${DESTDIR})")
354 endif()
355endforeach()
356
357# generate packages? yes please, if everything checks out
358if(CPACK_GENERATOR)
359 if(CPACK_GENERATOR STREQUAL DEB AND CORE_SYSTEM_NAME STREQUAL linux)
360 if(CMAKE_BUILD_TYPE STREQUAL Debug)
361 message(STATUS "DEB Generator: Build type is set to 'Debug'. Packaged binaries will be unstripped.")
362 endif()
363 include(${PROJECT_SOURCE_DIR}/cpack/CPackConfigDEB.cmake)
364 else()
365 message(FATAL_ERROR "DEB Generator: Can't configure CPack to generate Debian packages on non-linux systems.")
366 endif()
367endif()