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
RevLine 
[2619]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
[2509]6# Set the search paths for include files
7INCLUDE_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]23IF(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]25ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
[2574]26
[2509]27INCLUDE_DIRECTORIES(
[2610]28  ceguilua/ceguilua-${CEGUI_VERSION}
[2567]29)
30
31INCLUDE_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]40ADD_CXX_FLAGS("-DTIXML_USE_TICPP" 1)
41ADD_C_FLAGS  ("-DTIXML_USE_TICPP" 1)
[2509]42
[2583]43# Include macros
44INCLUDE(AddSourceFiles)
45INCLUDE(UseTolua)
46
47# External libraries, but copied into the repository
[2610]48ADD_SUBDIRECTORY(tolua)
[2608]49ADD_SUBDIRECTORY(ceguilua)
[1505]50ADD_SUBDIRECTORY(cpptcl)
[2569]51ADD_SUBDIRECTORY(ogreceguirenderer)
[1505]52ADD_SUBDIRECTORY(ois)
53ADD_SUBDIRECTORY(tinyxml)
54
[1810]55# Our own libraries
[1505]56ADD_SUBDIRECTORY(util)
57ADD_SUBDIRECTORY(core)
[2522]58#ADD_SUBDIRECTORY(audio)
[1505]59ADD_SUBDIRECTORY(network)
60ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.