Last change
on this file since 2138 was
1975,
checked in by adrfried, 16 years ago
|
lua removed and using extern one
|
-
Property svn:eol-style set to
native
|
File size:
1.5 KB
|
Rev | Line | |
---|
[1975] | 1 | # TODO: only build the object files once |
---|
| 2 | |
---|
[1505] | 3 | SET (TOLUALIB_SRC_FILES |
---|
| 4 | tolua_event.c |
---|
| 5 | tolua_is.c |
---|
| 6 | tolua_map.c |
---|
| 7 | tolua_push.c |
---|
| 8 | tolua_to.c |
---|
| 9 | ) |
---|
| 10 | |
---|
[1810] | 11 | ADD_LIBRARY (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES}) |
---|
[1975] | 12 | TARGET_LINK_LIBRARIES (tolualib_orxonox ${LUA_LIBRARIES}) |
---|
[1505] | 13 | |
---|
[1755] | 14 | SET (TOLUAGEN_SRC_FILES |
---|
[1505] | 15 | tolua.c |
---|
| 16 | toluabind.c |
---|
| 17 | ) |
---|
| 18 | |
---|
[1975] | 19 | ADD_EXECUTABLE (toluagen_orxonox ${TOLUAGEN_SRC_FILES} ${TOLUALIB_SRC_FILES}) |
---|
| 20 | TARGET_LINK_LIBRARIES (toluagen_orxonox ${LUA_LIBRARIES}) |
---|
[1755] | 21 | |
---|
[1882] | 22 | SET (TOLUA_PACKAGE "${CMAKE_CURRENT_SOURCE_DIR}/tolua-5.1.pkg") |
---|
[1810] | 23 | GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen_orxonox LOCATION) |
---|
[1755] | 24 | ADD_CUSTOM_COMMAND( |
---|
[1882] | 25 | OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/toluabind_orxonox.c |
---|
| 26 | COMMAND ${TOLUAGEN_EXE} -n tolua -o ${CMAKE_CURRENT_BINARY_DIR}/toluabind_orxonox.c -H ${CMAKE_CURRENT_BINARY_DIR}/toluabind_orxonox.h ${TOLUA_PACKAGE} |
---|
[1811] | 27 | DEPENDS |
---|
| 28 | toluagen_orxonox |
---|
[1815] | 29 | tolua-5.1.pkg |
---|
[1812] | 30 | lua/compat-5.1.lua |
---|
| 31 | lua/compat.lua |
---|
| 32 | lua/basic.lua |
---|
| 33 | lua/feature.lua |
---|
| 34 | lua/verbatim.lua |
---|
| 35 | lua/code.lua |
---|
[1813] | 36 | lua/typedef.lua |
---|
[1812] | 37 | lua/container.lua |
---|
| 38 | lua/package.lua |
---|
| 39 | lua/module.lua |
---|
| 40 | lua/namespace.lua |
---|
| 41 | lua/define.lua |
---|
| 42 | lua/enumerate.lua |
---|
| 43 | lua/declaration.lua |
---|
| 44 | lua/variable.lua |
---|
| 45 | lua/array.lua |
---|
| 46 | lua/function.lua |
---|
| 47 | lua/operator.lua |
---|
| 48 | lua/class.lua |
---|
| 49 | lua/clean.lua |
---|
| 50 | lua/doit.lua |
---|
[1882] | 51 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
---|
[1755] | 52 | ) |
---|
| 53 | |
---|
| 54 | SET (TOLUAEXE_SRC_FILES |
---|
| 55 | tolua.c |
---|
| 56 | toluabind_orxonox.c |
---|
| 57 | ) |
---|
| 58 | |
---|
[1975] | 59 | ADD_EXECUTABLE (tolua_orxonox ${TOLUAEXE_SRC_FILES} ${TOLUALIB_SRC_FILES}) |
---|
| 60 | TARGET_LINK_LIBRARIES (tolua_orxonox ${LUA_LIBRARIES}) |
---|
Note: See
TracBrowser
for help on using the repository browser.