Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2581 was 2579, checked in by rgrieder, 16 years ago
  • Equipped find scripts with debug/optimized functions. If you have different debug prefixes on your platform simply change ${LIBRARY_DEBUG_POSTFIX} ("_d" default).
  • Clean up in ConfigMSVC.cmake and ConfigMinGW.cmake
  • Also had a good look at the MinGW libraries according to the libs_1889_mingw.zip (no warranty at all, hope I got them all)
  • INSTALL commands are currently limited to non Windows platforms (don't yet know why it doesn't work)
  • Property svn:eol-style set to native
File size: 1.0 KB
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  ogreceguirenderer_orxonox
43  tinyxml_orxonox
44  tolualib_orxonox
45  util
46  core
47  #audio
48  network
49)
50
51IF (NOT WIN32)
52  INSTALL(TARGETS orxonox RUNTIME DESTINATION bin)
53ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.