Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core3/src/core/CMakeLists.txt @ 1574

Last change on this file since 1574 was 1574, checked in by landauf, 16 years ago

big change in ObjectList: separated the class into a non-template base and a template wrapper for the base. this also changes the Iterator, there is now a non-template IteratorBase. this brings much more flexibility, like iterating through all objects of a given identifier without knowing the type. however this needs a dynamic_cast, which isn't quite optimal, but I think there are much worser things than that out there. ;)

there isn't much you have to know about this, except there is no more ObjectList<myClass>::start() function but a ObjectList<myClass>::begin() to be more STLish. another thing: ObjectList<myClass>::end() points now to the element _after_ the last element, so it's possible to iterate in a for-loop until (it != ObjectList<myClass>::end()). the reason is the same as above. however, (it) as a boolean still works perfectly fine.

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1SET(CORE_SRC_FILES
2  ConfigFileManager.cc
3  ConfigValueContainer.cc
4  Core.cc
5  Error.cc
6  Language.cc
7  ObjectListBase.cc
8  OrxonoxClass.cc
9  OutputBuffer.cc
10  OutputHandler.cc
11  Script.cc
12  SignalHandler.cc
13
14  # command
15  ArgumentCompletionFunctions.cc
16  CommandEvaluation.cc
17  CommandExecutor.cc
18  ConsoleCommand.cc
19  ConsoleCommandCompilation.cc
20  Executor.cc
21
22  # hierarchy
23  Factory.cc
24  Identifier.cc
25  MetaObjectList.cc
26
27  # level
28  BaseObject.cc
29  ClassTreeMask.cc
30  Loader.cc
31  Namespace.cc
32  NamespaceNode.cc
33  XMLPort.cc
34
35  # shell
36  IRC.cc
37  Shell.cc
38  TclBind.cc
39  TclThreadManager.cc
40
41  # input
42  input/Button.cc
43  input/CalibratorCallback.cc
44  input/HalfAxis.cc
45  input/InputBuffer.cc
46  input/InputCommands.cc
47  input/InputManager.cc
48  input/KeyBinder.cc
49  input/KeyDetector.cc
50
51  tolua/tolua_bind.cc
52)
53
54GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
55ADD_CUSTOM_COMMAND(
56  OUTPUT tolua/tolua_bind.cc tolua/tolua_bind.h
57  COMMAND ${TOLUA_EXE} -n core -o ../../src/core/tolua/tolua_bind.cc -H ../../src/core/tolua/tolua_bind.h ../../src/core/tolua/tolua.pkg
58  DEPENDS tolua
59  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
60)
61
62ADD_LIBRARY(core SHARED ${CORE_SRC_FILES})
63
64TARGET_LINK_LIBRARIES(core
65  ${Lua_LIBRARIES}
66  ${OGRE_LIBRARIES}
67  cpptcl
68  ois_orxonox
69  tinyxml
70  tolualib
71  util
72  ${Boost_thread_LIBRARIES}
73  ${Boost_filesystem_LIBRARIES}
74)
Note: See TracBrowser for help on using the repository browser.