Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/orxonox/CMakeLists.txt @ 2565

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

Workaround to avoid the dependencies from OrxonoxStableHeaders.h on gcc when not using precompiled header files.

  • Property svn:eol-style set to native
File size: 986 bytes
Line 
1ADD_SOURCE_FILES(
2  CameraManager.cc
3  GraphicsEngine.cc
4  LevelManager.cc
5  Main.cc
6  PlayerManager.cc
7  Settings.cc
8)
9
10ADD_SOURCE_DIRECTORY(gamestates)
11ADD_SOURCE_DIRECTORY(gui)
12ADD_SOURCE_DIRECTORY(objects)
13ADD_SOURCE_DIRECTORY(overlays)
14ADD_SOURCE_DIRECTORY(tools)
15
16WRITE_SOURCE_FILES(ORXONOX_SRC_FILES)
17
18TOLUA(Orxonox ORXONOX_SRC_FILES INPUTFILES gui/GUIManager.h)
19
20# Not using precompiled header files: Avoid dependencies
21INCLUDE_DIRECTORIES(pch/nopch)
22
23ADD_EXECUTABLE(orxonox ${ORXONOX_SRC_FILES})
24
25IF(NETWORKTRAFFIC_TESTING_ENABLED)
26
27  SET( ORXONOXS_SRC_FILES
28    GraphicsEngine.cc
29    objects/Camera.cc
30    CameraManager.cc
31  )
32
33  ADD_LIBRARY(orxonoxs SHARED ${ORXONOX_SRC_FILES})
34ENDIF(NETWORKTRAFFIC_TESTING_ENABLED)
35
36TARGET_LINK_LIBRARIES( orxonox
37  ${OGRE_LIBRARY}
38  ${CEGUI_LIBRARY}
39  ${LUA_LIBRARIES}
40  #${CEGUI_SCRIPT_LIBRARIES}
41  ceguilua_orxonox
42  tinyxml_orxonox
43  tolualib_orxonox
44  util
45  core
46  #audio
47  network
48)
49
50INSTALL(TARGETS orxonox RUNTIME DESTINATION bin)
Note: See TracBrowser for help on using the repository browser.