Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/lod2/src/orxonox/CMakeLists.txt @ 2487

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

Trunk should be functional again with these changes

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1SET( ORXONOX_SRC_FILES
2  CameraManager.cc
3  GraphicsEngine.cc
4  LevelManager.cc
5  Main.cc
6  Settings.cc
7 
8  tolua/tolua_bind.cc
9)
10
11ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gamestates)
12ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES gui)
13ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES objects)
14ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES overlays)
15ADD_SOURCE_DIRECTORY(ORXONOX_SRC_FILES tools)
16
17GET_TARGET_PROPERTY(TOLUA_EXE tolua_orxonox LOCATION)
18ADD_CUSTOM_COMMAND(
19  OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/tolua/tolua_bind.cc ${CMAKE_CURRENT_SOURCE_DIR}/tolua/tolua_bind.h
20  COMMAND ${TOLUA_EXE} -n Orxonox -o ../../src/orxonox/tolua/tolua_bind.cc -H ../../src/orxonox/tolua/tolua_bind.h ../../src/orxonox/tolua/tolua.pkg
21  DEPENDS
22    tolua_orxonox
23    tolua/tolua.pkg
24    gui/GUIManager.h
25  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
26)
27
28
29ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} )
30
31IF(NETWORKTRAFFIC_TESTING_ENABLED)
32
33  SET( ORXONOXS_SRC_FILES
34    GraphicsEngine.cc
35    objects/Camera.cc
36    CameraManager.cc
37  )
38
39  ADD_LIBRARY(orxonoxs SHARED ${ORXONOX_SRC_FILES})
40ENDIF(NETWORKTRAFFIC_TESTING_ENABLED)
41
42TARGET_LINK_LIBRARIES( orxonox
43  ${OGRE_LIBRARIES}
44  ${CEGUI_LIBRARIES}
45  lua_orxonox
46  ceguilua_orxonox
47  tinyxml_orxonox
48  tolualib_orxonox
49  util
50  core
51  audio
52  network
53)
54
Note: See TracBrowser for help on using the repository browser.