Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Removed ogreceguirenderer from the include directories because the files can get included with OgreMain, which will result in errors. The other paths (cpptcl, ois, tinyxml, tolua) are not affected by this behaviour.

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
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)
17
18INCLUDE_DIRECTORIES(
19  cpptcl
20  ois
21  tinyxml
22  tolua
23)
24
25INCLUDE_DIRECTORIES(
26  .
27  orxonox
28  # Required for tolua bind files that are in the build folder
29  ${CMAKE_CURRENT_BINARY_DIR}
30  ${CMAKE_CURRENT_BINARY_DIR}/orxonox
31)
32
33# Set special macro symbols across all libraries
34SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP")
35
36ADD_SUBDIRECTORY(cpptcl)
37ADD_SUBDIRECTORY(ogreceguirenderer)
38ADD_SUBDIRECTORY(ois)
39ADD_SUBDIRECTORY(tinyxml)
40ADD_SUBDIRECTORY(tolua)
41
42# TODO: FIXME
43# Some people may not have CEGUILua installed, espc. with version 0.5
44# And we don't know what lua version it was linked against, so we compile
45# it ourselves.
46# So first, find out what CEGUI version we have.
47
48IF (WIN32)
49    ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua)
50    INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua)
51ELSE (WIN32)
52    # FIXME
53    #IF (${CEGUI_VERSION} LESS 0.6.0)
54        ADD_SUBDIRECTORY(ceguilua-0.5.0/ceguilua)
55        INCLUDE_DIRECTORIES(ceguilua-0.5.0/ceguilua)
56    #ELSE (${CEGUI_VERSION} LESS 0.6.0)
57    #    ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua)
58    #    INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua)
59    #ENDIF (${CEGUI_VERSION} LESS 0.6.0)
60ENDIF (WIN32)
61
62# Include macros
63INCLUDE(AddSourceFiles)
64INCLUDE(UseTolua)
65
66# Our own libraries
67ADD_SUBDIRECTORY(util)
68ADD_SUBDIRECTORY(core)
69#ADD_SUBDIRECTORY(audio)
70ADD_SUBDIRECTORY(network)
71ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.