Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2589 was 2588, checked in by rgrieder, 16 years ago

Visual Studio generator working for all build types. Compiles but does not run yet.

  • Had to define some export symbols
  • tinyxml and cpptcl have to be linked statically
  • some other libraries can be linked shared that were linked statically for windows (now for mingw only)
  • added two macros: ADD_CXX_FLAG(_flag _condition) and ADD_C_FLAG(_flag _condition)
  • Property svn:eol-style set to native
File size: 1.1 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
23# Enlarge heap size for precompiled header files
24ADD_CXX_FLAGS("-Zm200" MSVC)
25
26ADD_EXECUTABLE(orxonox ${ORXONOX_SRC_FILES})
27
28IF(NETWORKTRAFFIC_TESTING_ENABLED)
29
30  SET( ORXONOXS_SRC_FILES
31    GraphicsEngine.cc
32    objects/Camera.cc
33    CameraManager.cc
34  )
35
36  ADD_LIBRARY(orxonoxs SHARED ${ORXONOX_SRC_FILES})
37ENDIF(NETWORKTRAFFIC_TESTING_ENABLED)
38
39TARGET_LINK_LIBRARIES( orxonox
40  ${OGRE_LIBRARY}
41  ${CEGUI_LIBRARY}
42  ${LUA_LIBRARIES}
43  #${CEGUI_SCRIPT_LIBRARIES}
44  ceguilua_orxonox
45  ogreceguirenderer_orxonox
46  tinyxml_orxonox
47  tolualib_orxonox
48  util
49  core
50  #audio
51  network
52)
53
54IF (NOT WIN32)
55  INSTALL(TARGETS orxonox RUNTIME DESTINATION bin)
56ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.