Last change
on this file since 1256 was
1146,
checked in by landauf, 17 years ago
|
merged the last changes from trunk to console
|
File size:
948 bytes
|
Line | |
---|
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 | ) |
---|
10 | |
---|
11 | |
---|
12 | ADD_EXECUTABLE(tolua ${TOLUA_SRC_FILES}) |
---|
13 | |
---|
14 | TARGET_LINK_LIBRARIES(tolua |
---|
15 | ${Lua_LIBRARIES} |
---|
16 | m |
---|
17 | ) |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | SET(TOLUALIB_SRC_FILES |
---|
22 | tolua_event.c |
---|
23 | tolua_is.c |
---|
24 | tolua_map.c |
---|
25 | tolua_push.c |
---|
26 | tolua_to.c |
---|
27 | tolua_bind.cc |
---|
28 | tolua_bind.h |
---|
29 | ) |
---|
30 | |
---|
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 | ) |
---|
38 | |
---|
39 | GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION) |
---|
40 | ADD_CUSTOM_COMMAND( |
---|
41 | OUTPUT tolua_bind.h tolua_bind.cc |
---|
42 | COMMAND ${TOLUA_EXE} -n orxonox -o ../../src/tolua/tolua_bind.cc -H ../../src/tolua/tolua_bind.h ../../src/tolua/tolua.pkg |
---|
43 | DEPENDS tolua |
---|
44 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib |
---|
45 | ) |
---|
46 | |
---|
47 | ADD_LIBRARY(tolualib ${TOLUALIB_SRC_FILES}) |
---|
48 | |
---|
49 | TARGET_LINK_LIBRARIES(tolualib |
---|
50 | ${Lua_LIBRARIES} |
---|
51 | ) |
---|
52 | |
---|
Note: See
TracBrowser
for help on using the repository browser.