Last change
on this file since 2701 was
1815,
checked in by rgrieder, 16 years ago
|
added more tolua dependencies (our own header files)
fixed msvc files
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1505] | 1 | SET (TOLUALIB_SRC_FILES |
---|
| 2 | tolua_event.c |
---|
| 3 | tolua_is.c |
---|
| 4 | tolua_map.c |
---|
| 5 | tolua_push.c |
---|
| 6 | tolua_to.c |
---|
| 7 | ) |
---|
| 8 | |
---|
[1810] | 9 | ADD_LIBRARY (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES}) |
---|
[1505] | 10 | |
---|
[1810] | 11 | TARGET_LINK_LIBRARIES (tolualib_orxonox |
---|
| 12 | lua_orxonox |
---|
[1505] | 13 | ) |
---|
| 14 | |
---|
[1755] | 15 | |
---|
| 16 | SET (TOLUAGEN_SRC_FILES |
---|
[1505] | 17 | tolua.c |
---|
| 18 | toluabind.c |
---|
| 19 | ) |
---|
| 20 | |
---|
[1810] | 21 | ADD_EXECUTABLE (toluagen_orxonox ${TOLUAGEN_SRC_FILES}) |
---|
[1755] | 22 | |
---|
[1810] | 23 | TARGET_LINK_LIBRARIES (toluagen_orxonox |
---|
| 24 | lua_orxonox |
---|
| 25 | tolualib_orxonox |
---|
[1755] | 26 | m |
---|
| 27 | ) |
---|
| 28 | |
---|
| 29 | |
---|
[1810] | 30 | SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg") |
---|
| 31 | GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen_orxonox LOCATION) |
---|
[1755] | 32 | ADD_CUSTOM_COMMAND( |
---|
| 33 | OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/toluabind_orxonox.c |
---|
| 34 | COMMAND ${TOLUAGEN_EXE} -n tolua -o ../../src/tolua/toluabind_orxonox.c -H ../../src/tolua/toluabind_orxonox.h ${TOLUA_PACKAGE} |
---|
[1811] | 35 | DEPENDS |
---|
| 36 | toluagen_orxonox |
---|
[1815] | 37 | tolua-5.1.pkg |
---|
[1812] | 38 | lua/compat-5.1.lua |
---|
| 39 | lua/compat.lua |
---|
| 40 | lua/basic.lua |
---|
| 41 | lua/feature.lua |
---|
| 42 | lua/verbatim.lua |
---|
| 43 | lua/code.lua |
---|
[1813] | 44 | lua/typedef.lua |
---|
[1812] | 45 | lua/container.lua |
---|
| 46 | lua/package.lua |
---|
| 47 | lua/module.lua |
---|
| 48 | lua/namespace.lua |
---|
| 49 | lua/define.lua |
---|
| 50 | lua/enumerate.lua |
---|
| 51 | lua/declaration.lua |
---|
| 52 | lua/variable.lua |
---|
| 53 | lua/array.lua |
---|
| 54 | lua/function.lua |
---|
| 55 | lua/operator.lua |
---|
| 56 | lua/class.lua |
---|
| 57 | lua/clean.lua |
---|
| 58 | lua/doit.lua |
---|
[1755] | 59 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib |
---|
| 60 | ) |
---|
| 61 | |
---|
| 62 | SET (TOLUAEXE_SRC_FILES |
---|
| 63 | tolua.c |
---|
| 64 | toluabind_orxonox.c |
---|
| 65 | ) |
---|
| 66 | |
---|
[1810] | 67 | ADD_EXECUTABLE (tolua_orxonox ${TOLUAEXE_SRC_FILES}) |
---|
[1505] | 68 | |
---|
[1810] | 69 | TARGET_LINK_LIBRARIES (tolua_orxonox |
---|
| 70 | lua_orxonox |
---|
| 71 | tolualib_orxonox |
---|
[1505] | 72 | m |
---|
| 73 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.