Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2518 was 2510, checked in by rgrieder, 16 years ago

Merged revisions 2279-2401 of the buildsystem branch to buildsystem2.

  • Property svn:eol-style set to native
File size: 1.6 KB
RevLine 
[2509]1# Set the search paths for include files
2INCLUDE_DIRECTORIES(
3  ${OGRE_INCLUDE_DIR}
4  ${CEGUI_INCLUDE_DIR}
5#  ${CEGUI_OGRE_INCLUDE_DIR}
6  ${ENet_INCLUDE_DIR}
7  ${Boost_INCLUDE_DIRS}
8  ${OPENAL_INCLUDE_DIR}
9  ${ALUT_INCLUDE_DIR}
10  ${VORBIS_INCLUDE_DIR}
11  ${OGG_INCLUDE_DIR}
12  ${LUA_INCLUDE_DIR}
13  ${TCL_INCLUDE_PATH}
14  ${DirectX_INCLUDE_DIR}
15  ${ZLIB_INCLUDE_DIR}
16)
[1505]17
[2509]18INCLUDE_DIRECTORIES(
19  .
20  ois
21  orxonox
22  tolua
23  # Required for tolua bind files that are in the build folder
24  ${CMAKE_CURRENT_BINARY_DIR}
25)
26
27# Set special macro symbols across all libraries
28SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP")
29
[1505]30ADD_SUBDIRECTORY(cpptcl)
31ADD_SUBDIRECTORY(ois)
32ADD_SUBDIRECTORY(tinyxml)
33ADD_SUBDIRECTORY(tolua)
34
[2510]35# TODO: FIXME
[1810]36# Some people may not have CEGUILua installed, espc. with version 0.5
37# And we don't know what lua version it was linked against, so we compile
38# it ourselves.
39# So first, find out what CEGUI version we have.
[1854]40
41IF (WIN32)
42    ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua)
[2510]43    INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua)
[1854]44ELSE (WIN32)
[2509]45    # FIXME
46    #IF (${CEGUI_VERSION} LESS 0.6.0)
47        ADD_SUBDIRECTORY(ceguilua-0.5.0/ceguilua)
[2510]48        INCLUDE_DIRECTORIES(ceguilua-0.5.0/ceguilua)
[2509]49    #ELSE (${CEGUI_VERSION} LESS 0.6.0)
50    #    ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua)
[2510]51    #    INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua)
[2509]52    #ENDIF (${CEGUI_VERSION} LESS 0.6.0)
[1854]53ENDIF (WIN32)
[1810]54
[2129]55# Include macro to easily add source files in subdirectories
56INCLUDE(AddSourceFiles)
[1810]57
58# Our own libraries
[1505]59ADD_SUBDIRECTORY(util)
60ADD_SUBDIRECTORY(core)
61ADD_SUBDIRECTORY(audio)
62ADD_SUBDIRECTORY(network)
63ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.