Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cmake/src/core/CMakeLists.txt @ 1147

Last change on this file since 1147 was 1147, checked in by rgrieder, 17 years ago
  • re added some dependency code
File size: 1.1 KB
Line 
1SET(CORE_SRC_FILES
2  OrxonoxClass.cc
3  BaseObject.cc
4  Factory.cc
5  Identifier.cc
6  IdentifierDistributor.cc
7  InputHandler.cc
8  InputManager.cc
9  InputEventListener.cc
10  MetaObjectList.cc
11  ConfigFileManager.cc
12  ConfigValueContainer.cc
13  Error.cc
14  SignalHandler.cc
15  CoreSettings.cc
16  OutputHandler.cc
17  Language.cc
18  ClassTreeMask.cc
19  Loader.cc
20  Executor.cc
21  XMLPort.cc
22  Namespace.cc
23  NamespaceNode.cc
24  CommandExecutor.cc
25  InputBuffer.cc
26  Tickable.cc
27  Script.cc
28  tolua/tolua_bind.cc
29  tolua/tolua_bind.h
30)
31
32SET_SOURCE_FILES_PROPERTIES(tolua/tolua_bind.h
33  PROPERTIES
34  OBJECT_DEPENDS tolua/tolua_bind.h
35  OBJECT_DEPENDS tolua/tolua_bind.cc
36  GENERATED true
37  HEADER_FILE_ONLY true
38)
39
40GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
41ADD_CUSTOM_COMMAND(
42  OUTPUT tolua/tolua_bind.cc
43  COMMAND ${TOLUA_EXE} -n core -o core/tolua/tolua_bind.cc -H core/tolua/tolua_bind.h core/tolua/tolua.pkg
44  DEPENDS tolua
45  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src
46)
47
48ADD_LIBRARY(core SHARED ${CORE_SRC_FILES})
49
50TARGET_LINK_LIBRARIES(core
51  ${Lua_LIBRARIES}
52  ${OIS_LIBRARIES}
53  ${OGRE_LIBRARIES}
54  util
55)
Note: See TracBrowser for help on using the repository browser.