Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2610 was 2610, checked in by rgrieder, 15 years ago

Prefixed library directory for each internal third party library.
From now on, include for instance <tolua/tolua++> instead of <tolua++.h>
This may avoid problems if external include directories because some of our includes our modified. Consider e.g. ENet to be in /usr/include/enet/enet.h. Then you will have /usr/inlcude as include directory, possibly revealing an installed version of, say, TinyXML++.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# Set the search paths for include files
2INCLUDE_DIRECTORIES(
3  ${OGRE_INCLUDE_DIR}
4  ${CEGUI_INCLUDE_DIR}
5  ${ENET_INCLUDE_DIR}
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)
16
17# Check whether the required CEGUILua version is even available
18IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
19  MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})")
20ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
21
22INCLUDE_DIRECTORIES(
23  ceguilua/ceguilua-${CEGUI_VERSION}
24)
25
26INCLUDE_DIRECTORIES(
27  .
28  orxonox
29  # Required for tolua bind files that are in the build folder
30  ${CMAKE_CURRENT_BINARY_DIR}
31  ${CMAKE_CURRENT_BINARY_DIR}/orxonox
32)
33
34# Set special macro symbols across all libraries
35ADD_CXX_FLAGS("-DTIXML_USE_TICPP" 1)
36ADD_C_FLAGS  ("-DTIXML_USE_TICPP" 1)
37
38# Include macros
39INCLUDE(AddSourceFiles)
40INCLUDE(UseTolua)
41
42# External libraries, but copied into the repository
43ADD_SUBDIRECTORY(tolua)
44ADD_SUBDIRECTORY(ceguilua)
45ADD_SUBDIRECTORY(cpptcl)
46ADD_SUBDIRECTORY(ogreceguirenderer)
47ADD_SUBDIRECTORY(ois)
48ADD_SUBDIRECTORY(tinyxml)
49
50# Our own libraries
51ADD_SUBDIRECTORY(util)
52ADD_SUBDIRECTORY(core)
53#ADD_SUBDIRECTORY(audio)
54ADD_SUBDIRECTORY(network)
55ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.