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 | # Tolua binding speedup if required |
---|
11 | ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" Release MinSizeRel TOLUA_PARSER_RELEASE) |
---|
12 | |
---|
13 | ################ OrxonoxConfig.h ################ |
---|
14 | |
---|
15 | # Copy and configure OrxonoxConfig which gets included in every file |
---|
16 | CONFIGURE_FILE(OrxonoxConfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/OrxonoxConfig.h) |
---|
17 | |
---|
18 | |
---|
19 | ############## Include Directories ############## |
---|
20 | |
---|
21 | # Set the search paths for include files |
---|
22 | INCLUDE_DIRECTORIES( |
---|
23 | # External |
---|
24 | ${OGRE_INCLUDE_DIR} |
---|
25 | ${CEGUI_INCLUDE_DIR} |
---|
26 | ${ENET_INCLUDE_DIR} |
---|
27 | ${Boost_INCLUDE_DIRS} |
---|
28 | ${OPENAL_INCLUDE_DIR} |
---|
29 | ${ALUT_INCLUDE_DIR} |
---|
30 | ${VORBIS_INCLUDE_DIR} |
---|
31 | ${OGG_INCLUDE_DIR} |
---|
32 | ${LUA_INCLUDE_DIR} |
---|
33 | ${TCL_INCLUDE_PATH} |
---|
34 | ${DIRECTX_INCLUDE_DIR} |
---|
35 | ${ZLIB_INCLUDE_DIR} |
---|
36 | |
---|
37 | # Internal |
---|
38 | . |
---|
39 | orxonox |
---|
40 | # Required for tolua bind and config files that are in the binary folder |
---|
41 | ${CMAKE_CURRENT_BINARY_DIR} |
---|
42 | ${CMAKE_CURRENT_BINARY_DIR}/orxonox |
---|
43 | ) |
---|
44 | |
---|
45 | |
---|
46 | ################ Sub Directories ################ |
---|
47 | |
---|
48 | # Third party libraries |
---|
49 | ADD_SUBDIRECTORY(tolua) |
---|
50 | |
---|
51 | # Include CEGUILua if not requested otherwise |
---|
52 | IF(CEGUILUA_USE_INTERNAL_LIBRARY) |
---|
53 | IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
54 | MESSAGE(FATAL_ERROR "CEGUILua version not found in src folder. Update list of supported versions in LibraryConfig.cmake!") |
---|
55 | ENDIF() |
---|
56 | |
---|
57 | INCLUDE_DIRECTORIES(ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
58 | ADD_SUBDIRECTORY(ceguilua) |
---|
59 | ENDIF() |
---|
60 | |
---|
61 | ADD_SUBDIRECTORY(cpptcl) |
---|
62 | ADD_SUBDIRECTORY(ogreceguirenderer) |
---|
63 | ADD_SUBDIRECTORY(ois) |
---|
64 | ADD_SUBDIRECTORY(tinyxml) |
---|
65 | |
---|
66 | # Orxonox code |
---|
67 | ADD_SUBDIRECTORY(util) |
---|
68 | ADD_SUBDIRECTORY(core) |
---|
69 | ADD_SUBDIRECTORY(audio) |
---|
70 | ADD_SUBDIRECTORY(network) |
---|
71 | ADD_SUBDIRECTORY(orxonox) |
---|