Last change
on this file since 1831 was
1755,
checked in by rgrieder, 16 years ago
|
merged gui back to trunk.
update the media repository!
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Line | |
---|
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 | |
---|
9 | ADD_LIBRARY (tolualib SHARED ${TOLUALIB_SRC_FILES}) |
---|
10 | |
---|
11 | TARGET_LINK_LIBRARIES (tolualib |
---|
12 | ${Lua_LIBRARIES} |
---|
13 | ) |
---|
14 | |
---|
15 | |
---|
16 | SET (TOLUAGEN_SRC_FILES |
---|
17 | tolua.c |
---|
18 | toluabind.c |
---|
19 | ) |
---|
20 | |
---|
21 | ADD_EXECUTABLE (toluagen ${TOLUAGEN_SRC_FILES}) |
---|
22 | |
---|
23 | TARGET_LINK_LIBRARIES (toluagen |
---|
24 | ${Lua_LIBRARIES} |
---|
25 | tolualib |
---|
26 | m |
---|
27 | ) |
---|
28 | |
---|
29 | |
---|
30 | IF (Lua_VERSION EQUAL 5.0) |
---|
31 | SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.0.pkg") |
---|
32 | ELSE (Lua_VERSION EQUAL 5.0) |
---|
33 | SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg") |
---|
34 | ENDIF (Lua_VERSION EQUAL 5.0) |
---|
35 | |
---|
36 | GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen LOCATION) |
---|
37 | ADD_CUSTOM_COMMAND( |
---|
38 | OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/toluabind_orxonox.c |
---|
39 | COMMAND ${TOLUAGEN_EXE} -n tolua -o ../../src/tolua/toluabind_orxonox.c -H ../../src/tolua/toluabind_orxonox.h ${TOLUA_PACKAGE} |
---|
40 | DEPENDS toluagen |
---|
41 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib |
---|
42 | ) |
---|
43 | |
---|
44 | SET (TOLUAEXE_SRC_FILES |
---|
45 | tolua.c |
---|
46 | toluabind_orxonox.c |
---|
47 | ) |
---|
48 | |
---|
49 | ADD_EXECUTABLE (tolua ${TOLUAEXE_SRC_FILES}) |
---|
50 | |
---|
51 | TARGET_LINK_LIBRARIES (tolua |
---|
52 | ${Lua_LIBRARIES} |
---|
53 | tolualib |
---|
54 | m |
---|
55 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.