Last change
on this file since 1127 was
1127,
checked in by rgrieder, 16 years ago
|
- tolua_bind.cc and Script.cc depended on each other, but were not in the same library.
gcc doesn't care anyway, vc++ didn't too because I linked statically.
However: Circular dependencies are not very good.
New approach: every lib has its own tolua_bind.cc file
I've added this for orxonox and core.
fabian: Is it possible, that under certain conditions, you need the SET_TARGET_PROPERTIES?
On tardis, things work very well without it. But what about cmake under windows?
I'll readd it, if required.
|
File size:
903 bytes
|
Line | |
---|
1 | SET(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 | ) |
---|
30 | |
---|
31 | GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION) |
---|
32 | ADD_CUSTOM_COMMAND( |
---|
33 | OUTPUT tolua/tolua_bind.cc |
---|
34 | COMMAND ${TOLUA_EXE} -n core -o core/tolua/tolua_bind.cc -H core/tolua/tolua_bind.h core/tolua/tolua.pkg |
---|
35 | DEPENDS tolua |
---|
36 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src |
---|
37 | ) |
---|
38 | |
---|
39 | ADD_LIBRARY(core SHARED ${CORE_SRC_FILES}) |
---|
40 | |
---|
41 | TARGET_LINK_LIBRARIES(core |
---|
42 | ${Lua_LIBRARIES} |
---|
43 | ${OIS_LIBRARIES} |
---|
44 | ${OGRE_LIBRARIES} |
---|
45 | util |
---|
46 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.