Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Moved TOLUA_RELEASE option.

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# various macro includes
2INCLUDE(FlagUtilities)
3INCLUDE(SourceFileUtilities)
4INCLUDE(GenerateToluaBindings)
5
6# Use TinyXML++
7ADD_COMPILER_FLAGS("-DTIXML_USE_TICPP")
8# OIS dynamic linking requires macro definition, at least for Windows
9ADD_COMPILER_FLAGS("-DOIS_DYNAMIC_LIB")
10# Tolua binding speedup if required
11ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" Release MinSizeRel TOLUA_PARSER_RELEASE)
12
13################ OrxonoxConfig.h ################
14
15# Copy and configure OrxonoxConfig which gets included in every file
16CONFIGURE_FILE(OrxonoxConfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/OrxonoxConfig.h)
17
18
19############## Include Directories ##############
20
21# Set the search paths for include files
22INCLUDE_DIRECTORIES(
23  # External
24  ${OGRE_INCLUDE_DIR}
25  ${CEGUI_INCLUDE_DIR}
26  ${ENET_INCLUDE_DIR}
27  ${Boost_INCLUDE_DIRS}
28  ${OPENAL_INCLUDE_DIR}
29  ${ALUT_INCLUDE_DIR}
30  ${VORBIS_INCLUDE_DIR}
31  ${OGG_INCLUDE_DIR}
32  ${LUA_INCLUDE_DIR}
33  ${TCL_INCLUDE_PATH}
34  ${DIRECTX_INCLUDE_DIR}
35  ${ZLIB_INCLUDE_DIR}
36
37  # Internal
38  .
39  orxonox
40  # Required for tolua bind and config files that are in the binary folder
41  ${CMAKE_CURRENT_BINARY_DIR}
42  ${CMAKE_CURRENT_BINARY_DIR}/orxonox
43)
44
45
46################ Sub Directories ################
47
48# Third party libraries
49ADD_SUBDIRECTORY(tolua)
50
51# Include CEGUILua if not requested otherwise
52IF(CEGUILUA_USE_INTERNAL_LIBRARY)
53  IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
54    MESSAGE(FATAL_ERROR "CEGUILua version not found in src folder. Update list of supported versions in LibraryConfig.cmake!")
55  ENDIF()
56
57  INCLUDE_DIRECTORIES(ceguilua/ceguilua-${CEGUI_VERSION})
58  ADD_SUBDIRECTORY(ceguilua)
59ENDIF()
60
61ADD_SUBDIRECTORY(cpptcl)
62ADD_SUBDIRECTORY(ogreceguirenderer)
63ADD_SUBDIRECTORY(ois)
64ADD_SUBDIRECTORY(tinyxml)
65
66# Orxonox code
67ADD_SUBDIRECTORY(util)
68ADD_SUBDIRECTORY(core)
69ADD_SUBDIRECTORY(audio)
70ADD_SUBDIRECTORY(network)
71ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.