Last change
on this file since 2619 was
2619,
checked in by rgrieder, 15 years ago
|
Removed src/util/OrxonoxPlatform.h and added src/OrxonoxConfig.h.in that gets configured by CMake.
|
-
Property svn:eol-style set to
native
|
File size:
1.6 KB
|
Rev | Line | |
---|
[2619] | 1 | ################ OrxonoxConfig.h ################ |
---|
| 2 | |
---|
| 3 | # Copy and configure OrxonoxConfig which gets included in every file |
---|
| 4 | CONFIGURE_FILE(OrxonoxConfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/OrxonoxConfig.h) |
---|
| 5 | |
---|
[2509] | 6 | # Set the search paths for include files |
---|
| 7 | INCLUDE_DIRECTORIES( |
---|
| 8 | ${OGRE_INCLUDE_DIR} |
---|
| 9 | ${CEGUI_INCLUDE_DIR} |
---|
[2583] | 10 | ${ENET_INCLUDE_DIR} |
---|
[2509] | 11 | ${Boost_INCLUDE_DIRS} |
---|
| 12 | ${OPENAL_INCLUDE_DIR} |
---|
| 13 | ${ALUT_INCLUDE_DIR} |
---|
| 14 | ${VORBIS_INCLUDE_DIR} |
---|
| 15 | ${OGG_INCLUDE_DIR} |
---|
| 16 | ${LUA_INCLUDE_DIR} |
---|
| 17 | ${TCL_INCLUDE_PATH} |
---|
| 18 | ${DirectX_INCLUDE_DIR} |
---|
| 19 | ${ZLIB_INCLUDE_DIR} |
---|
| 20 | ) |
---|
[1505] | 21 | |
---|
[2574] | 22 | # Check whether the required CEGUILua version is even available |
---|
[2608] | 23 | IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
[2583] | 24 | MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})") |
---|
[2608] | 25 | ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
[2574] | 26 | |
---|
[2509] | 27 | INCLUDE_DIRECTORIES( |
---|
[2610] | 28 | ceguilua/ceguilua-${CEGUI_VERSION} |
---|
[2567] | 29 | ) |
---|
| 30 | |
---|
| 31 | INCLUDE_DIRECTORIES( |
---|
[2509] | 32 | . |
---|
| 33 | orxonox |
---|
| 34 | # Required for tolua bind files that are in the build folder |
---|
| 35 | ${CMAKE_CURRENT_BINARY_DIR} |
---|
[2567] | 36 | ${CMAKE_CURRENT_BINARY_DIR}/orxonox |
---|
[2509] | 37 | ) |
---|
| 38 | |
---|
| 39 | # Set special macro symbols across all libraries |
---|
[2593] | 40 | ADD_CXX_FLAGS("-DTIXML_USE_TICPP" 1) |
---|
| 41 | ADD_C_FLAGS ("-DTIXML_USE_TICPP" 1) |
---|
[2509] | 42 | |
---|
[2583] | 43 | # Include macros |
---|
| 44 | INCLUDE(AddSourceFiles) |
---|
| 45 | INCLUDE(UseTolua) |
---|
| 46 | |
---|
| 47 | # External libraries, but copied into the repository |
---|
[2610] | 48 | ADD_SUBDIRECTORY(tolua) |
---|
[2608] | 49 | ADD_SUBDIRECTORY(ceguilua) |
---|
[1505] | 50 | ADD_SUBDIRECTORY(cpptcl) |
---|
[2569] | 51 | ADD_SUBDIRECTORY(ogreceguirenderer) |
---|
[1505] | 52 | ADD_SUBDIRECTORY(ois) |
---|
| 53 | ADD_SUBDIRECTORY(tinyxml) |
---|
| 54 | |
---|
[1810] | 55 | # Our own libraries |
---|
[1505] | 56 | ADD_SUBDIRECTORY(util) |
---|
| 57 | ADD_SUBDIRECTORY(core) |
---|
[2522] | 58 | #ADD_SUBDIRECTORY(audio) |
---|
[1505] | 59 | ADD_SUBDIRECTORY(network) |
---|
| 60 | ADD_SUBDIRECTORY(orxonox) |
---|
Note: See
TracBrowser
for help on using the repository browser.