Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Replaced most of the ELSE(…) and ENDIF(…) with ELSE() and ENDIF(). Kept the shorter and the spreaded ones for better clarity since that's what it originally was thought for. But I can really pollute the code when having long conditions and lots of IFs.

  • Property svn:eol-style set to native
File size: 2.0 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
11OPTION(TOLUA_PARSER_RELEASE "Disable all debug messages from tolua bind files for Release and MinSizeRel build types." FALSE)
12ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" Release MinSizeRel TOLUA_PARSER_RELEASE)
13
14################ OrxonoxConfig.h ################
15
16# Copy and configure OrxonoxConfig which gets included in every file
17CONFIGURE_FILE(OrxonoxConfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/OrxonoxConfig.h)
18
19
20############## Include Directories ##############
21
22# Set the search paths for include files
23INCLUDE_DIRECTORIES(
24  # External
25  ${OGRE_INCLUDE_DIR}
26  ${CEGUI_INCLUDE_DIR}
27  ${ENET_INCLUDE_DIR}
28  ${Boost_INCLUDE_DIRS}
29  ${OPENAL_INCLUDE_DIR}
30  ${ALUT_INCLUDE_DIR}
31  ${VORBIS_INCLUDE_DIR}
32  ${OGG_INCLUDE_DIR}
33  ${LUA_INCLUDE_DIR}
34  ${TCL_INCLUDE_PATH}
35  ${DIRECTX_INCLUDE_DIR}
36  ${ZLIB_INCLUDE_DIR}
37
38  # Internal
39  .
40  orxonox
41  # Required for tolua bind and config files that are in the binary folder
42  ${CMAKE_CURRENT_BINARY_DIR}
43  ${CMAKE_CURRENT_BINARY_DIR}/orxonox
44)
45
46
47################ Sub Directories ################
48
49# Third party libraries
50ADD_SUBDIRECTORY(tolua)
51
52# Include CEGUILua if not requested otherwise
53IF(CEGUILUA_USE_INTERNAL_LIBRARY)
54  IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
55    MESSAGE(FATAL_ERROR "CEGUILua version not found in src folder. Update list of supported versions in LibraryConfig.cmake!")
56  ENDIF()
57
58  INCLUDE_DIRECTORIES(ceguilua/ceguilua-${CEGUI_VERSION})
59  ADD_SUBDIRECTORY(ceguilua)
60ENDIF()
61
62ADD_SUBDIRECTORY(cpptcl)
63ADD_SUBDIRECTORY(ogreceguirenderer)
64ADD_SUBDIRECTORY(ois)
65ADD_SUBDIRECTORY(tinyxml)
66
67# Orxonox code
68ADD_SUBDIRECTORY(util)
69ADD_SUBDIRECTORY(core)
70ADD_SUBDIRECTORY(audio)
71ADD_SUBDIRECTORY(network)
72ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.