-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
531 lines (478 loc) · 17.7 KB
/
CMakeLists.txt
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
cmake_minimum_required(VERSION 2.6)
cmake_policy(VERSION 2.6.4)
enable_testing()
project(GiGi)
set(CMAKE_VERBOSE_MAKEFILE false)
########################################
# Configuration #
########################################
set(GIGI_VERSION 0.8.0)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_HOME_DIRECTORY}/cmake)
include(Config)
include(Util)
set(MINIMUM_BOOST_VERSION 1.47.0)
set(MINIMUM_BOOST_COMPONENTS date_time filesystem signals system thread)
option(BUILD_STATIC "Enables building of static libraries." OFF)
option(BUILD_SHARED "Enables building of shared libraries." ON)
option(BUILD_DEBUG "Controls generation of debug code; OFF implies release code." OFF)
option(BUILD_MULTI_THREADED "Controls generation of multi-threaded code; OFF implies single-threaded code." ON)
if (BUILD_DEBUG)
set(BUILD_RELEASE OFF)
else ()
set(BUILD_RELEASE ON)
endif ()
if (BUILD_MULTI_THREADED)
set(BUILD_SINGLE_THREADED OFF)
else ()
set(BUILD_SINGLE_THREADED ON)
endif ()
set(BOOST_SIGNALS_NAMESPACE "signals" CACHE STRING
"Specifies alternate namespace used for boost::signals (only needed if you changed it using the BOOST_SIGNALS_NAMESPACE define when you built boost).")
option(USE_DEVIL
"Enables optional use of the DevIL image-loading library. This should only be enabled if you need to load image files other than PNG, JPEG, and TIFF."
OFF)
option(BUILD_SDL_DRIVER
"Builds GG SDL support (the GiGiSDL library)."
ON)
option(BUILD_OGRE_DRIVER
"Builds GG Ogre support (the GiGiOgre library)."
ON)
option(BUILD_OGRE_OIS_PLUGIN
"Builds OIS input plugin for the GiGiOgre library."
ON)
option(BUILD_DOCUMENTATION
"Builds HTML documentation (requires Doxygen)."
ON)
set(RUNTIME_ONLY_PACKAGE false)
set(DEVEL_ONLY_PACKAGE false)
set(NO_DOCS_PACKAGE false)
set(NO_HEADERS_PACKAGE false)
set(GG_PACKAGE_DEPENDENCY false)
set(GG_DEVEL_PACKAGE_DEPENDENCY false)
set(SDL_PACKAGE_DEPENDENCY false)
set(SDL_DEVEL_PACKAGE_DEPENDENCY false)
set(OGRE_OIS_PACKAGE_DEPENDENCY false)
set(OGRE_OIS_DEVEL_PACKAGE_DEPENDENCY false)
if (UNIX)
set(PACKAGE_CONFIGURATIONS
NoPackage GiGi GiGiSDL GiGiOgre Full GiGiDevel GiGiSDLDevel GiGiOgreDevel FullDevel
CACHE INTERNAL
"The types of packages available for build. NoPackage means leave everything in. They follow the pattern {GiGi|GiGiSDL|GiGiOgre|Full}[Devel]."
)
set(PACKAGE_TYPE
NoPackage
CACHE STRING
"The type of package chosen for this build. These allow you to build Debs and RPMs that contain the sublibraries within GG, or all of GG, binary-only or \"-devel\". NoPackage means leave everything in. They follow the pattern {GiGi|GiGiSDL|GiGiOgre|Full}[Devel]."
)
list_contains(package_type_valid ${PACKAGE_TYPE} ${PACKAGE_CONFIGURATIONS})
if (NOT package_type_valid)
message(FATAL_ERROR "Your choice for PACKAGE_TYPE \"${PACKAGE_TYPE}\" is not a valid string. Choose one of [${PACKAGE_CONFIGURATIONS}].")
endif ()
if (NOT ${PACKAGE_TYPE} STREQUAL NoPackage)
if (${PACKAGE_TYPE} MATCHES Devel)
set(RUNTIME_ONLY_PACKAGE false)
set(DEVEL_ONLY_PACKAGE true)
else ()
set(RUNTIME_ONLY_PACKAGE true)
set(DEVEL_ONLY_PACKAGE false)
endif ()
if (NOT ${PACKAGE_TYPE} STREQUAL FullDevel AND NOT ${PACKAGE_TYPE} STREQUAL GiGiDevel)
set(NO_DOCS_PACKAGE true)
set(NO_HEADERS_PACKAGE true)
if (DEVEL_ONLY_PACKAGE)
set(GG_DEVEL_PACKAGE_DEPENDENCY true)
endif ()
endif ()
if (RUNTIME_ONLY_PACKAGE AND NOT ${PACKAGE_TYPE} STREQUAL Full AND NOT ${PACKAGE_TYPE} STREQUAL GiGi)
set(GG_PACKAGE_DEPENDENCY true)
endif ()
if (${PACKAGE_TYPE} STREQUAL Full OR ${PACKAGE_TYPE} STREQUAL GiGiSDL)
set(SDL_PACKAGE_DEPENDENCY true)
endif ()
if (${PACKAGE_TYPE} STREQUAL FullDevel OR ${PACKAGE_TYPE} STREQUAL GiGiSDLDevel)
set(SDL_DEVEL_PACKAGE_DEPENDENCY true)
endif ()
if (${PACKAGE_TYPE} STREQUAL Full OR ${PACKAGE_TYPE} STREQUAL GiGiOgre)
set(OGRE_OIS_PACKAGE_DEPENDENCY true)
endif ()
if (${PACKAGE_TYPE} STREQUAL FullDevel OR ${PACKAGE_TYPE} STREQUAL GiGiOgreDevel)
set(OGRE_OIS_DEVEL_PACKAGE_DEPENDENCY true)
endif ()
endif ()
else ()
set(PACKAGE_CONFIGURATIONS NoPackage)
set(PACKAGE_TYPE NoPackage)
endif ()
# Determines whether ${component} is included in the package being built (if
# any), and returns the result in ${var}. Ignores the distinction between
# Devel and non-Devel package types.
macro (package_compatible var component)
if (${component} MATCHES GiGiSDL)
if (${PACKAGE_TYPE} STREQUAL NoPackage OR ${PACKAGE_TYPE} MATCHES Full OR ${PACKAGE_TYPE} MATCHES GiGiSDL)
set(${var} true)
else ()
set(${var} false)
endif ()
elseif (${component} MATCHES GiGiOgre)
if (${PACKAGE_TYPE} STREQUAL NoPackage OR ${PACKAGE_TYPE} MATCHES Full OR ${PACKAGE_TYPE} MATCHES GiGiOgre)
set(${var} true)
else ()
set(${var} false)
endif ()
elseif (${component} MATCHES GiGi)
if (${PACKAGE_TYPE} STREQUAL NoPackage OR ${PACKAGE_TYPE} MATCHES Full OR ${PACKAGE_TYPE} STREQUAL GiGi OR ${PACKAGE_TYPE} STREQUAL GiGiDevel)
set(${var} true)
else ()
set(${var} false)
endif ()
else ()
message(FATAL_ERROR "Invalid component \"${component}\" passed to package_compatible().")
endif ()
endmacro ()
include(CMakeDependentOption)
cmake_dependent_option(BUILD_TUTORIALS
"Build tutorial apps (requires SDL driver)."
ON
BUILD_SDL_DRIVER
OFF)
add_definitions(-DADOBE_STD_SERIALIZATION)
include_directories(${CMAKE_HOME_DIRECTORY})
########################################
# Dependencies #
########################################
set(Boost_USE_STATIC_LIBS ${BUILD_STATIC})
set(Boost_USE_MULTITHREADED ${BUILD_MULTI_THREADED})
find_package(Boost ${MINIMUM_BOOST_VERSION} COMPONENTS ${MINIMUM_BOOST_COMPONENTS})
if (Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
else ()
message(FATAL_ERROR "Boost libraries not found.")
endif ()
if (NOT BOOST_SIGNALS_NAMESPACE STREQUAL "signals")
add_definitions(
-DBOOST_SIGNALS_NAMESPACE=${BOOST_SIGNALS_NAMESPACE}
-Dsignals=${BOOST_SIGNALS_NAMESPACE}
)
endif ()
set(int_have_devil 0)
set(int_have_jpeg 0)
set(int_have_png 0)
set(int_have_tiff 0)
if (USE_DEVIL)
find_package(DevIL)
if (IL_FOUND)
include_directories(${IL_INCLUDE_DIR})
set(int_have_devil 1)
else ()
message(FATAL_ERROR "DevIL libraries not found.")
endif ()
else ()
find_package(JPEG)
if (JPEG_FOUND)
include_directories(${JPEG_INCLUDE_DIR})
set(int_have_jpeg 1)
endif ()
find_package(PNG)
if (PNG_FOUND)
include_directories(${PNG_INCLUDE_DIR})
set(int_have_png 1)
endif ()
find_package(TIFF)
if (TIFF_FOUND)
include_directories(${TIFF_INCLUDE_DIR})
set(int_have_tiff 1)
endif ()
endif ()
find_package(OpenGL)
if (OPENGL_FOUND)
if (NOT OPENGL_GLU_FOUND)
message(FATAL_ERROR "OpenGL GLU library not found.")
endif ()
include_directories(${OPENGL_INCLUDE_DIR})
else ()
message(FATAL_ERROR "OpenGL library not found.")
endif ()
find_package(Freetype)
if (FREETYPE_FOUND)
include_directories(${FREETYPE_INCLUDE_DIRS})
else ()
message(FATAL_ERROR "Freetype library not found.")
endif ()
########################################
# Header Generation #
########################################
if (NOT EXISTS ${CMAKE_HOME_DIRECTORY}/libltdl/config.h)
if (UNIX)
message("-- Configuring libltdl using \"libltdl/configure\" ...")
execute_process(
COMMAND ${CMAKE_HOME_DIRECTORY}/libltdl/configure
WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/libltdl
OUTPUT_QUIET
)
else ()
file(WRITE ${CMAKE_HOME_DIRECTORY}/libltdl/config.h
"/* WARNING: Generated by GG's build system. All local changes will be lost! */
#define error_t int
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_CTYPE_H 1
#define HAVE_MEMORY_H 1
#define HAVE_ERRNO_H 1
#define __WIN32__
#define HAVE_MEMCPY 1
#define HAVE_MEMMOVE 1
#define LTDL_OBJDIR \".libs\"
#define LTDL_DLOPEN_DEPLIBS 1
#define LTDL_SHLIBPATH_VAR \"PATH\"
#define LTDL_SHLIB_EXT \".dll\"
"
)
endif ()
endif ()
configure_file(
${CMAKE_HOME_DIRECTORY}/cmake/Config.h.in
${CMAKE_HOME_DIRECTORY}/GG/Config.h
@ONLY
)
########################################
# Installed Files #
########################################
if (NOT NO_HEADERS_PACKAGE)
install(
DIRECTORY GG
DESTINATION include
COMPONENT COMPONENT_GIGI_DEVEL
PATTERN ".svn" EXCLUDE
PATTERN "*~" EXCLUDE
)
endif ()
macro (install_pc_file component)
package_compatible(ok_to_install ${component})
if (ok_to_install)
install(
FILES ${CMAKE_BINARY_DIR}/${component}.pc
DESTINATION lib${LIB_SUFFIX}/pkgconfig
COMPONENT COMPONENT_GIGI_DEVEL
OPTIONAL
)
endif ()
endmacro ()
if (UNIX AND NOT RUNTIME_ONLY_PACKAGE)
install_pc_file(GiGi)
install_pc_file(GiGiSDL)
install_pc_file(GiGiOgre)
endif ()
########################################
# Recurse Into Sources #
########################################
add_subdirectory(src)
add_subdirectory(test)
if (BUILD_TUTORIALS)
add_subdirectory(tutorial)
endif ()
########################################
# Documentation #
########################################
find_package(Doxygen)
if (DOXYGEN_FOUND)
if (NOT EXISTS ${CMAKE_BINARY_DIR}/doc/GG)
message("-- Generating Doxygen documentation")
execute_process(
COMMAND ${DOXYGEN_EXECUTABLE}
WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc
)
execute_process(
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_HOME_DIRECTORY}/doc/GG
${CMAKE_BINARY_DIR}/doc/GG
)
execute_process(
COMMAND ${CMAKE_COMMAND} -E remove_directory
${CMAKE_HOME_DIRECTORY}/doc/GG
)
endif ()
if (BUILD_DOCUMENTATION AND NOT NO_DOCS_PACKAGE)
install(
DIRECTORY ${CMAKE_BINARY_DIR}/doc/GG
DESTINATION doc
)
endif ()
elseif (BUILD_DOCUMENTATION)
message(" Warning: Doxygen could not be found. Disabling the documentation build.")
endif ()
########################################
# Packaging #
########################################
if (RUNTIME_ONLY_PACKAGE AND DEVEL_ONLY_PACKAGE)
message(FATAL_ERROR "Both RUNTIME_ONLY_PACKAGE and DEVEL_ONLY_PACKAGE are turned on. This means that nothing will be installed and generated packages will be empty!")
endif ()
set(CPACK_PACKAGE_VERSION ${GIGI_VERSION})
set(CPACK_PACKAGE_VENDOR "T. Zachary Laine")
set(CPACK_PACKAGE_CONTACT ${CPACK_PACKAGE_VENDOR})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A C++ OpenGL GUI library.")
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_HOME_DIRECTORY}/COPYING)
if (NOT ${PACKAGE_TYPE} STREQUAL NoPackage)
set(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
if (${PACKAGE_TYPE} STREQUAL Full)
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
string(TOLOWER ${CPACK_PACKAGE_FILE_NAME} CPACK_PACKAGE_FILE_NAME)
else ()
if (NOT ${PACKAGE_TYPE} STREQUAL FullDevel)
set(CPACK_PACKAGE_NAME ${PACKAGE_TYPE})
string(REPLACE Devel "" CPACK_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
if (${PACKAGE_TYPE} MATCHES Ogre OR ${PACKAGE_TYPE} MATCHES SDL)
string(REPLACE GiGi GiGi- CPACK_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
endif ()
else ()
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
endif ()
set(version_devel_substring ${CPACK_PACKAGE_VERSION})
if (DEVEL_ONLY_PACKAGE)
set(version_devel_substring devel-${version_devel_substring})
endif ()
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${version_devel_substring}-${CPACK_SYSTEM_NAME}")
string(TOLOWER ${CPACK_PACKAGE_FILE_NAME} CPACK_PACKAGE_FILE_NAME)
endif ()
endif ()
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-src)
# RPM-specific settings
set(CPACK_RPM_PACKAGE_LICENSE LGPL)
set(CPACK_RPM_PACKAGE_REQUIRES)
if (NOT RUNTIME_ONLY_PACKAGE)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES boost-devel>=1.44.0 Mesa-devel freetype2-devel)
if (GG_DEVEL_PACKAGE_DEPENDENCY)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES gigi-devel=${GIGI_VERSION})
endif ()
if (SDL_DEVEL_PACKAGE_DEPENDENCY)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES SDL-devel>=1.2)
endif ()
if (OGRE_OIS_DEVEL_PACKAGE_DEPENDENCY)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES ogre-devel>=1.6 libois-devel>=1.2)
endif ()
endif ()
if (NOT DEVEL_ONLY_PACKAGE)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES Mesa freetype2)
if (GG_PACKAGE_DEPENDENCY)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES gigi=${GIGI_VERSION})
endif ()
if (SDL_PACKAGE_DEPENDENCY)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES SDL>=1.2)
endif ()
if (OGRE_OIS_PACKAGE_DEPENDENCY)
list(APPEND CPACK_RPM_PACKAGE_REQUIRES ogre>=1.6 libois1>=1.2)
endif ()
endif ()
# Deb-specific settings
set(CPACK_DEBIAN_PACKAGE_SECTION libs)
if (NOT RUNTIME_ONLY_PACKAGE)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "boost-devel (>= 1.44.0), libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, libfreetype6-dev")
if (GG_DEVEL_PACKAGE_DEPENDENCY)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, gigi-dev (= ${GIGI_VERSION})")
endif ()
if (SDL_DEVEL_PACKAGE_DEPENDENCY)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libsdl1.2-dev (>= 1.2)")
endif ()
if (OGRE_OIS_DEVEL_PACKAGE_DEPENDENCY)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libogre-dev (>= 1.4.9), libois-dev")
endif ()
endif ()
if (NOT DEVEL_ONLY_PACKAGE)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgl1-mesa-glx | libgl1, libglu1-mesa | libglu, libfreetype6")
if (GG_PACKAGE_DEPENDENCY)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, gigi (= ${GIGI_VERSION})")
endif ()
if (SDL_PACKAGE_DEPENDENCY)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libsdl1.2debian (>= 1.2)")
endif ()
if (OGRE_OIS_PACKAGE_DEPENDENCY)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libogremain-1.4.9 (>= 1.4.9), libois1")
endif ()
endif ()
if (UNIX)
set(CPACK_GENERATOR "TGZ;TBZ2")
find_program(RPMBUILD rpmbuild)
if (RPMBUILD)
list(APPEND CPACK_GENERATOR RPM)
endif ()
set(RPMBUILD ${RPMBUILD} CACHE INTERNAL "")
find_program(DPKG dpkg)
if (DPKG)
list(APPEND CPACK_GENERATOR DEB)
endif ()
set(DPKG ${DPKG} CACHE INTERNAL "")
set(CPACK_SOURCE_GENERATOR "TGZ;TBZ2")
elseif (WIN32)
set(CPACK_GENERATOR "NSIS")
set(CPACK_SOURCE_GENERATOR "ZIP")
endif ()
include(CPack)
cpack_add_component(
COMPONENT_GIGI
DISPLAY_NAME GiGi
DESCRIPTION "The core GG library, including the GUI state machine and all the controls. Not usable without an input driver."
REQUIRED
GROUP COMPONENT_GROUP_RUNTIME
)
cpack_add_component(
COMPONENT_GIGISDL
DISPLAY_NAME GiGiSDL
DESCRIPTION "An SDL input driver (http://www.libsdl.org)."
GROUP COMPONENT_GROUP_RUNTIME
DEPENDS COMPONENT_GIGI
)
cpack_add_component(
COMPONENT_GIGIOGRE
DISPLAY_NAME GiGiOgre
DESCRIPTION "An Ogre input driver (http://www.ogre3d.org). Note that Ogre itself does not include proper input support. The OIS input plugin is recommended."
GROUP COMPONENT_GROUP_RUNTIME
DEPENDS COMPONENT_GIGI
)
cpack_add_component(
COMPONENT_GIGIOGREPLUGIN_OIS
DISPLAY_NAME "GiGiOgre OIS Plugin"
DESCRIPTION "An Ogre plugin using OIS (http://sourceforge.net/projects/wgois)."
GROUP COMPONENT_GROUP_RUNTIME
DEPENDS COMPONENT_GIGIOGRE
)
cpack_add_component(
COMPONENT_GIGI_DEVEL
DISPLAY_NAME "GiGi"
DESCRIPTION "The files necessary to do development with GiGi."
GROUP COMPONENT_GROUP_DEVEL
DEPENDS COMPONENT_GIGI
)
cpack_add_component(
COMPONENT_GIGISDL_DEVEL
DISPLAY_NAME "GiGiSDL"
DESCRIPTION "The files necessary to do development with GiGiSDL."
GROUP COMPONENT_GROUP_DEVEL
DEPENDS COMPONENT_GIGI_DEVEL COMPONENT_GIGISDL
)
cpack_add_component(
COMPONENT_GIGIOGRE_DEVEL
DISPLAY_NAME "GiGiOgre"
DESCRIPTION "The files necessary to do development with GiGiOgre."
GROUP COMPONENT_GROUP_DEVEL
DEPENDS COMPONENT_GIGI_DEVEL COMPONENT_GIGIOGRE
)
cpack_add_component(
COMPONENT_GIGIOGREPLUGIN_OIS_DEVEL
DISPLAY_NAME "GiGiOgre OIS Plugin"
DESCRIPTION "The files necessary to do development with GiGiOgre's OIS Plugin. Only required for users who are statically linking against Ogre, and want to link to the OIS plugin at link-time."
GROUP COMPONENT_GROUP_DEVEL
DEPENDS COMPONENT_GIGIOGRE_DEVEL COMPONENT_GIGIOGREPLUGIN_OIS
)
cpack_add_component_group(
COMPONENT_GROUP_RUNTIME
DISPLAY_NAME "Runtime"
DESCRIPTION "The runtime libs needed to run an application that uses GG."
EXPANDED
)
cpack_add_component_group(
COMPONENT_GROUP_DEVEL
DISPLAY_NAME "Development"
DESCRIPTION "The development libs and headers needed to build an application that uses GG."
EXPANDED
)