Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/CMakeLists.txt @ 2619

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
Line 
1################ OrxonoxConfig.h ################
2
3# Copy and configure OrxonoxConfig which gets included in every file
4CONFIGURE_FILE(OrxonoxConfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/OrxonoxConfig.h)
5
6# Set the search paths for include files
7INCLUDE_DIRECTORIES(
8  ${OGRE_INCLUDE_DIR}
9  ${CEGUI_INCLUDE_DIR}
10  ${ENET_INCLUDE_DIR}
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)
21
22# Check whether the required CEGUILua version is even available
23IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
24  MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})")
25ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
26
27INCLUDE_DIRECTORIES(
28  ceguilua/ceguilua-${CEGUI_VERSION}
29)
30
31INCLUDE_DIRECTORIES(
32  .
33  orxonox
34  # Required for tolua bind files that are in the build folder
35  ${CMAKE_CURRENT_BINARY_DIR}
36  ${CMAKE_CURRENT_BINARY_DIR}/orxonox
37)
38
39# Set special macro symbols across all libraries
40ADD_CXX_FLAGS("-DTIXML_USE_TICPP" 1)
41ADD_C_FLAGS  ("-DTIXML_USE_TICPP" 1)
42
43# Include macros
44INCLUDE(AddSourceFiles)
45INCLUDE(UseTolua)
46
47# External libraries, but copied into the repository
48ADD_SUBDIRECTORY(tolua)
49ADD_SUBDIRECTORY(ceguilua)
50ADD_SUBDIRECTORY(cpptcl)
51ADD_SUBDIRECTORY(ogreceguirenderer)
52ADD_SUBDIRECTORY(ois)
53ADD_SUBDIRECTORY(tinyxml)
54
55# Our own libraries
56ADD_SUBDIRECTORY(util)
57ADD_SUBDIRECTORY(core)
58#ADD_SUBDIRECTORY(audio)
59ADD_SUBDIRECTORY(network)
60ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.