Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/bugger/src/orxonox/CMakeLists.txt @ 2548

Last change on this file since 2548 was 2369, checked in by landauf, 16 years ago
  • Added a health bar
  • Some changes in CameraManager to handle the case when no camera exists after removing the last one, but this is still somehow buggy (freezes and later crashes reproducible but inexplicable after a few respawns)
  • Added PawnManager to handle destruction of Pawns without using delete within tick()
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1SET( ORXONOX_SRC_FILES
2  CameraManager.cc
3  GraphicsEngine.cc
4  LevelManager.cc
5  Main.cc
6  PawnManager.cc
7  PlayerManager.cc
8  Settings.cc
9 
10  tolua/tolua_bind.cc
11)
12
13ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gamestates)
14ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gui)
15ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES objects)
16ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES overlays)
17ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES tools)
18
19GET_TARGET_PROPERTY(TOLUA_EXE tolua_orxonox LOCATION)
20ADD_CUSTOM_COMMAND(
21  OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/tolua/tolua_bind.cc ${CMAKE_CURRENT_SOURCE_DIR}/tolua/tolua_bind.h
22  COMMAND ${TOLUA_EXE} -n Orxonox -o ../../src/orxonox/tolua/tolua_bind.cc -H ../../src/orxonox/tolua/tolua_bind.h ../../src/orxonox/tolua/tolua.pkg
23  DEPENDS
24    tolua_orxonox
25    tolua/tolua.pkg
26    gui/GUIManager.h
27  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
28)
29
30
31ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} )
32
33IF(NETWORKTRAFFIC_TESTING_ENABLED)
34
35  SET( ORXONOXS_SRC_FILES
36    GraphicsEngine.cc
37    objects/Camera.cc
38    CameraManager.cc
39  )
40
41  ADD_LIBRARY(orxonoxs SHARED ${ORXONOX_SRC_FILES})
42ENDIF(NETWORKTRAFFIC_TESTING_ENABLED)
43
44TARGET_LINK_LIBRARIES( orxonox
45  ${OGRE_LIBRARIES}
46  ${CEGUI_LIBRARIES}
47  lua_orxonox
48  ceguilua_orxonox
49  tinyxml_orxonox
50  tolualib_orxonox
51  util
52  core
53  audio
54  network
55)
56
Note: See TracBrowser for help on using the repository browser.