Last change
on this file since 2241 was
2239,
checked in by rgrieder, 16 years ago
|
Resolved tolua include directory problem in another fashion by adding CMAKE_BINARY_DIR/src to the include directories and adjusting the the include directives. There were some changes necessary in package.lua (it uses the package name as folder to write "#include "core/CommandExecutor.h"").
The problem with the old resolution (-iquotes) was that you could write "#include "Core.h"" in a file that is not in the core, because src/core was effectively added to the list of include directories (just the ones with quotes of course).
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | SET(CORE_SRC_FILES |
---|
2 | Clock.cc |
---|
3 | ConfigFileManager.cc |
---|
4 | ConfigValueContainer.cc |
---|
5 | Core.cc |
---|
6 | GameState.cc |
---|
7 | Language.cc |
---|
8 | ObjectListBase.cc |
---|
9 | OrxonoxClass.cc |
---|
10 | RootGameState.cc |
---|
11 | Script.cc |
---|
12 | |
---|
13 | # command |
---|
14 | ArgumentCompletionFunctions.cc |
---|
15 | CommandEvaluation.cc |
---|
16 | CommandExecutor.cc |
---|
17 | CommandLine.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/ExtendedInputState.cc |
---|
45 | input/HalfAxis.cc |
---|
46 | input/InputBuffer.cc |
---|
47 | input/InputCommands.cc |
---|
48 | input/InputManager.cc |
---|
49 | input/KeyBinder.cc |
---|
50 | input/KeyDetector.cc |
---|
51 | input/SimpleInputState.cc |
---|
52 | ) |
---|
53 | |
---|
54 | INCLUDE(UseTolua) |
---|
55 | TOLUA(Core CORE_SRC_FILES INPUTFILES Script.h CommandExecutor.h) |
---|
56 | |
---|
57 | ADD_LIBRARY(core SHARED ${CORE_SRC_FILES}) |
---|
58 | |
---|
59 | TARGET_LINK_LIBRARIES(core |
---|
60 | ${OGRE_LIBRARY} |
---|
61 | ${Boost_THREAD_LIBRARY} |
---|
62 | ${Boost_FILESYSTEM_LIBRARY} |
---|
63 | ${LUA_LIBRARIES} |
---|
64 | cpptcl_orxonox |
---|
65 | ois_orxonox |
---|
66 | tinyxml_orxonox |
---|
67 | tolualib_orxonox |
---|
68 | util |
---|
69 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.