Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2583 was 2583, checked in by rgrieder, 15 years ago
  • Use $ENV{BOOST_ROOT} to find boost if possible
  • Set TOLUA_PARSER_WORKING_DIRECTORY now defaults to ${CMAKE_RUNTIME_OUTPUT_PATH}
  • Added bin/release, bin/debug, release and debug to the Ogre library prefix paths
  • Lots of small fixes and changes
  • Property svn:eol-style set to native
File size: 1.4 KB
RevLine 
[2509]1# Set the search paths for include files
2INCLUDE_DIRECTORIES(
3  ${OGRE_INCLUDE_DIR}
4  ${CEGUI_INCLUDE_DIR}
[2583]5  ${ENET_INCLUDE_DIR}
[2509]6  ${Boost_INCLUDE_DIRS}
7  ${OPENAL_INCLUDE_DIR}
8  ${ALUT_INCLUDE_DIR}
9  ${VORBIS_INCLUDE_DIR}
10  ${OGG_INCLUDE_DIR}
11  ${LUA_INCLUDE_DIR}
12  ${TCL_INCLUDE_PATH}
13  ${DirectX_INCLUDE_DIR}
14  ${ZLIB_INCLUDE_DIR}
15)
[1505]16
[2574]17# Check whether the required CEGUILua version is even available
18IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION})
[2583]19  MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})")
[2574]20ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION})
21
[2509]22INCLUDE_DIRECTORIES(
[2574]23  ceguilua-${CEGUI_VERSION}/ceguilua
[2567]24  cpptcl
25  ois
26  tinyxml
27  tolua
28)
29
30INCLUDE_DIRECTORIES(
[2509]31  .
32  orxonox
33  # Required for tolua bind files that are in the build folder
34  ${CMAKE_CURRENT_BINARY_DIR}
[2567]35  ${CMAKE_CURRENT_BINARY_DIR}/orxonox
[2509]36)
37
38# Set special macro symbols across all libraries
39SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP")
40
[2583]41# Include macros
42INCLUDE(AddSourceFiles)
43INCLUDE(UseTolua)
44
45# External libraries, but copied into the repository
[2574]46ADD_SUBDIRECTORY(ceguilua-${CEGUI_VERSION}/ceguilua)
[1505]47ADD_SUBDIRECTORY(cpptcl)
[2569]48ADD_SUBDIRECTORY(ogreceguirenderer)
[1505]49ADD_SUBDIRECTORY(ois)
50ADD_SUBDIRECTORY(tinyxml)
51ADD_SUBDIRECTORY(tolua)
52
[1810]53# Our own libraries
[1505]54ADD_SUBDIRECTORY(util)
55ADD_SUBDIRECTORY(core)
[2522]56#ADD_SUBDIRECTORY(audio)
[1505]57ADD_SUBDIRECTORY(network)
58ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.