Last change
on this file since 1980 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
|
Line | |
---|
1 | # TODO: only build the object files once |
---|
2 | |
---|
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 | |
---|
11 | ADD_LIBRARY (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES}) |
---|
12 | TARGET_LINK_LIBRARIES (tolualib_orxonox ${LUA_LIBRARIES}) |
---|
13 | |
---|
14 | SET (TOLUAGEN_SRC_FILES |
---|
15 | tolua.c |
---|
16 | toluabind.c |
---|
17 | ) |
---|
18 | |
---|
19 | ADD_EXECUTABLE (toluagen_orxonox ${TOLUAGEN_SRC_FILES} ${TOLUALIB_SRC_FILES}) |
---|
20 | TARGET_LINK_LIBRARIES (toluagen_orxonox ${LUA_LIBRARIES}) |
---|
21 | |
---|
22 | SET (TOLUA_PACKAGE "${CMAKE_CURRENT_SOURCE_DIR}/tolua-5.1.pkg") |
---|
23 | GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen_orxonox LOCATION) |
---|
24 | ADD_CUSTOM_COMMAND( |
---|
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} |
---|
27 | DEPENDS |
---|
28 | toluagen_orxonox |
---|
29 | tolua-5.1.pkg |
---|
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 |
---|
36 | lua/typedef.lua |
---|
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 |
---|
51 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
---|
52 | ) |
---|
53 | |
---|
54 | SET (TOLUAEXE_SRC_FILES |
---|
55 | tolua.c |
---|
56 | toluabind_orxonox.c |
---|
57 | ) |
---|
58 | |
---|
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.