Last change
on this file since 1808 was
1804,
checked in by rgrieder, 16 years ago
|
Implemented lua and ceguilua as far as it works now with visual studio. Next (not so big) step is to integrate it in CMake (already did the most part).
|
-
Property svn:eol-style set to
native
|
File size:
1.1 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_orxonox SHARED ${TOLUALIB_SRC_FILES}) |
---|
10 | |
---|
11 | TARGET_LINK_LIBRARIES (tolualib_orxonox |
---|
12 | lua_orxonox |
---|
13 | ) |
---|
14 | |
---|
15 | |
---|
16 | SET (TOLUAGEN_SRC_FILES |
---|
17 | tolua.c |
---|
18 | toluabind.c |
---|
19 | ) |
---|
20 | |
---|
21 | ADD_EXECUTABLE (toluagen_orxonox ${TOLUAGEN_SRC_FILES}) |
---|
22 | |
---|
23 | TARGET_LINK_LIBRARIES (toluagen_orxonox |
---|
24 | lua_orxonox |
---|
25 | tolualib_orxonox |
---|
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_orxonox 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_orxonox |
---|
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_orxonox ${TOLUAEXE_SRC_FILES}) |
---|
50 | |
---|
51 | TARGET_LINK_LIBRARIES (tolua_orxonox |
---|
52 | lua_orxonox |
---|
53 | tolualib_orxonox |
---|
54 | m |
---|
55 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.