1 | # various macro includes |
---|
2 | INCLUDE(FlagUtilities) |
---|
3 | INCLUDE(SourceFileUtilities) |
---|
4 | INCLUDE(GenerateToluaBindings) |
---|
5 | |
---|
6 | # Use TinyXML++ |
---|
7 | ADD_COMPILER_FLAGS("-DTIXML_USE_TICPP") |
---|
8 | # OIS dynamic linking requires macro definition, at least for Windows |
---|
9 | ADD_COMPILER_FLAGS("-DOIS_DYNAMIC_LIB") |
---|
10 | |
---|
11 | OPTION(TOLUA_PARSER_RELEASE "Disable all debug messages from tolua bind files for Release and MinSizeRel build types." FALSE) |
---|
12 | ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" Release MinSizeRel TOLUA_PARSER_RELEASE) |
---|
13 | |
---|
14 | ################ OrxonoxConfig.h ################ |
---|
15 | |
---|
16 | # Copy and configure OrxonoxConfig which gets included in every file |
---|
17 | CONFIGURE_FILE(OrxonoxConfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/OrxonoxConfig.h) |
---|
18 | |
---|
19 | |
---|
20 | ############## Include Directories ############## |
---|
21 | |
---|
22 | # Set the search paths for include files |
---|
23 | INCLUDE_DIRECTORIES( |
---|
24 | # External |
---|
25 | ${OGRE_INCLUDE_DIR} |
---|
26 | ${CEGUI_INCLUDE_DIR} |
---|
27 | ${ENET_INCLUDE_DIR} |
---|
28 | ${Boost_INCLUDE_DIRS} |
---|
29 | ${OPENAL_INCLUDE_DIR} |
---|
30 | ${ALUT_INCLUDE_DIR} |
---|
31 | ${VORBIS_INCLUDE_DIR} |
---|
32 | ${OGG_INCLUDE_DIR} |
---|
33 | ${LUA_INCLUDE_DIR} |
---|
34 | ${TCL_INCLUDE_PATH} |
---|
35 | ${DIRECTX_INCLUDE_DIR} |
---|
36 | ${ZLIB_INCLUDE_DIR} |
---|
37 | |
---|
38 | # Internal |
---|
39 | . |
---|
40 | orxonox |
---|
41 | # Required for tolua bind and config files that are in the binary folder |
---|
42 | ${CMAKE_CURRENT_BINARY_DIR} |
---|
43 | ${CMAKE_CURRENT_BINARY_DIR}/orxonox |
---|
44 | ) |
---|
45 | |
---|
46 | |
---|
47 | ################ Sub Directories ################ |
---|
48 | |
---|
49 | # Third party libraries |
---|
50 | ADD_SUBDIRECTORY(tolua) |
---|
51 | |
---|
52 | # Include CEGUILua if not requested otherwise |
---|
53 | IF(CEGUILUA_USE_INTERNAL_LIBRARY) |
---|
54 | IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
55 | MESSAGE(FATAL_ERROR "CEGUILua version not found in src folder. Update list of supported versions in LibraryConfig.cmake!") |
---|
56 | ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
57 | |
---|
58 | INCLUDE_DIRECTORIES(ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
59 | ADD_SUBDIRECTORY(ceguilua) |
---|
60 | ENDIF(CEGUILUA_USE_INTERNAL_LIBRARY) |
---|
61 | |
---|
62 | ADD_SUBDIRECTORY(cpptcl) |
---|
63 | ADD_SUBDIRECTORY(ogreceguirenderer) |
---|
64 | ADD_SUBDIRECTORY(ois) |
---|
65 | ADD_SUBDIRECTORY(tinyxml) |
---|
66 | |
---|
67 | # Orxonox code |
---|
68 | ADD_SUBDIRECTORY(util) |
---|
69 | ADD_SUBDIRECTORY(core) |
---|
70 | ADD_SUBDIRECTORY(audio) |
---|
71 | ADD_SUBDIRECTORY(network) |
---|
72 | ADD_SUBDIRECTORY(orxonox) |
---|