Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Fixes:

  • Improved OpenAL include hack (no, it's not hackier now, I really mean 'improved')
  • Network and Audio shared linking for MinGW (using alut and openal sdk binaries now)
  • TCL and ZLIB find scripts may have found the wrong library when using dependency packages (happened with MATLAB libz.dll because of the PATH variable)
  • Disabled auto boost auto linking (also removes ugly hack in LibraryConfig.cmake)

Updates:

  • OpenAL 1.1 for MinGW
  • Ogre 1.4.9 for MinGW
  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19
20################ Various Options ################
21
22# various macro includes
23INCLUDE(FlagUtilities)
24INCLUDE(SourceFileUtilities)
25INCLUDE(GenerateToluaBindings)
26
27# Use TinyXML++
28ADD_COMPILER_FLAGS("-DTIXML_USE_TICPP")
29# OIS dynamic linking requires macro definition, at least for Windows
30ADD_COMPILER_FLAGS("-DOIS_DYNAMIC_LIB")
31# Tolua binding speedup if required
32ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" Release MinSizeRel TOLUA_PARSER_RELEASE)
33
34################ OrxonoxConfig.h ################
35
36# Copy and configure OrxonoxConfig which gets included in every file
37CONFIGURE_FILE(OrxonoxConfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/OrxonoxConfig.h)
38
39
40############## Include Directories ##############
41
42# Set the search paths for include files
43INCLUDE_DIRECTORIES(
44  # External
45  ${OGRE_INCLUDE_DIR}
46  ${CEGUI_INCLUDE_DIR}
47  ${ENET_INCLUDE_DIR}
48  ${Boost_INCLUDE_DIRS}
49  ${OPENAL_INCLUDE_DIRS}
50  ${ALUT_INCLUDE_DIR}
51  ${VORBIS_INCLUDE_DIR}
52  ${OGG_INCLUDE_DIR}
53  ${LUA_INCLUDE_DIR}
54  ${TCL_INCLUDE_PATH}
55  ${DIRECTX_INCLUDE_DIR}
56  ${ZLIB_INCLUDE_DIR}
57
58  # Internal
59  .
60  orxonox
61  # Required for tolua bind and config files that are in the binary folder
62  ${CMAKE_CURRENT_BINARY_DIR}
63  ${CMAKE_CURRENT_BINARY_DIR}/orxonox
64)
65
66
67################ Sub Directories ################
68
69# Third party libraries
70ADD_SUBDIRECTORY(tolua)
71
72# Include CEGUILua if not requested otherwise
73IF(CEGUILUA_USE_INTERNAL_LIBRARY)
74  IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
75    MESSAGE(FATAL_ERROR "CEGUILua version not found in src folder. Update list of supported versions in LibraryConfig.cmake!")
76  ENDIF()
77
78  INCLUDE_DIRECTORIES(ceguilua/ceguilua-${CEGUI_VERSION})
79  ADD_SUBDIRECTORY(ceguilua)
80ENDIF()
81
82ADD_SUBDIRECTORY(cpptcl)
83ADD_SUBDIRECTORY(ogreceguirenderer)
84ADD_SUBDIRECTORY(ois)
85ADD_SUBDIRECTORY(tinyxml)
86
87# Orxonox code
88ADD_SUBDIRECTORY(util)
89ADD_SUBDIRECTORY(core)
90ADD_SUBDIRECTORY(audio)
91ADD_SUBDIRECTORY(network)
92ADD_SUBDIRECTORY(orxonox)
Note: See TracBrowser for help on using the repository browser.