source:
code/branches/console/src/tolua/CMakeLists.txt
@
1255
Last change on this file since 1255 was 1146, checked in by landauf, 17 years ago | |
---|---|
File size: 948 bytes |
Rev | Line | |
---|---|---|
[1115] | 1 | SET(TOLUA_SRC_FILES |
2 | tolua.c | |
3 | tolua_event.c | |
4 | tolua_is.c | |
5 | tolua_map.c | |
6 | tolua_push.c | |
7 | tolua_to.c | |
8 | toluabind.c | |
9 | ) | |
[1075] | 10 | |
11 | ||
[1115] | 12 | ADD_EXECUTABLE(tolua ${TOLUA_SRC_FILES}) |
[1075] | 13 | |
[1115] | 14 | TARGET_LINK_LIBRARIES(tolua |
15 | ${Lua_LIBRARIES} | |
16 | m | |
[1075] | 17 | ) |
18 | ||
19 | ||
20 | ||
[1115] | 21 | SET(TOLUALIB_SRC_FILES |
[1073] | 22 | tolua_event.c |
23 | tolua_is.c | |
24 | tolua_map.c | |
25 | tolua_push.c | |
26 | tolua_to.c | |
[1115] | 27 | tolua_bind.cc |
28 | tolua_bind.h | |
[1073] | 29 | ) |
30 | ||
[1115] | 31 | SET_SOURCE_FILES_PROPERTIES(tolua_bind.h |
32 | PROPERTIES | |
33 | OBJECT_DEPENDS tolua_bind.h | |
34 | OBJECT_DEPENDS tolua_bind.cc | |
35 | GENERATED true | |
36 | HEADER_FILE_ONLY true | |
37 | ) | |
[1073] | 38 | |
[1115] | 39 | GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION) |
40 | ADD_CUSTOM_COMMAND( | |
41 | OUTPUT tolua_bind.h tolua_bind.cc | |
[1146] | 42 | COMMAND ${TOLUA_EXE} -n orxonox -o ../../src/tolua/tolua_bind.cc -H ../../src/tolua/tolua_bind.h ../../src/tolua/tolua.pkg |
[1115] | 43 | DEPENDS tolua |
[1146] | 44 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib |
[1115] | 45 | ) |
46 | ||
47 | ADD_LIBRARY(tolualib ${TOLUALIB_SRC_FILES}) | |
48 | ||
49 | TARGET_LINK_LIBRARIES(tolualib | |
[1073] | 50 | ${Lua_LIBRARIES} |
51 | ) | |
[1115] | 52 |
Note: See TracBrowser
for help on using the repository browser.