Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/core/CMakeLists.txt @ 2623

Last change on this file since 2623 was 2621, checked in by rgrieder, 16 years ago

This commit gets a little ugly, couldn't separate that anymore:

  • Renamed UseTolua.cmake to GenerateLuaBindings.cmake
  • Applied the macros for compiler flags, linker flags, header files and source groups Updated the whole build tree for that
  • Created real compiler config scripts (BuildConfigGCC.cmake and BuildConfigMSVC.cmake)
  • Large scale clean up in BuildConfig.cmake
  • You can now specify your own LibraryConfig and BuildConfig script via CMake Cache
  • Lots of small changes and fixes
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1SET_SOURCE_FILES(CORE_SRC_FILES
2  Clock.cc
3  ConfigFileManager.cc
4  ConfigValueContainer.cc
5  Core.cc
6  Event.cc
7  GameState.cc
8  Language.cc
9  LuaBind.cc
10  ObjectListBase.cc
11  OrxonoxClass.cc
12  RootGameState.cc
13
14  # command
15  ArgumentCompletionFunctions.cc
16  CommandEvaluation.cc
17  CommandExecutor.cc
18  CommandLine.cc
19  ConsoleCommand.cc
20  ConsoleCommandCompilation.cc
21  Executor.cc
22
23  # hierarchy
24  Factory.cc
25  Identifier.cc
26  MetaObjectList.cc
27
28  # level
29  BaseObject.cc
30  ClassTreeMask.cc
31  Loader.cc
32  Namespace.cc
33  NamespaceNode.cc
34  Template.cc
35  XMLPort.cc
36  XMLNameListener.cc
37
38  # shell
39  IRC.cc
40  Shell.cc
41  TclBind.cc
42  TclThreadManager.cc
43)
44ADD_SUBDIRECTORY(input)
45GET_ALL_HEADER_FILES(CORE_HDR_FILES)
46SET(CORE_FILES ${CORE_SRC_FILES} ${CORE_HDR_FILES})
47
48GENERATE_SOURCE_GROUPS(${CORE_FILES})
49GENERATE_TOLUA_BINDINGS(Core CORE_FILES INPUTFILES LuaBind.h CommandExecutor.h)
50
51ADD_LIBRARY(core SHARED ${CORE_FILES})
52
53SET_TARGET_PROPERTIES(core PROPERTIES DEFINE_SYMBOL "CORE_SHARED_BUILD")
54TARGET_LINK_LIBRARIES(core
55  ${OGRE_LIBRARY}
56  ${Boost_THREAD_LIBRARY}
57  ${Boost_FILESYSTEM_LIBRARY}
58  ${LUA_LIBRARIES}
59  cpptcl_orxonox
60  ois_orxonox
61  tinyxml++_orxonox
62  tolua++_orxonox
63  util
64)
65
66IF (NOT WIN32)
67  INSTALL(TARGETS core LIBRARY DESTINATION lib)
68ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.