Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/tolua/CMakeLists.txt @ 1787

Last change on this file since 1787 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 
1SET (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
9ADD_LIBRARY (tolualib SHARED ${TOLUALIB_SRC_FILES})
10
11TARGET_LINK_LIBRARIES (tolualib
12  ${Lua_LIBRARIES}
13)
14
15
16SET (TOLUAGEN_SRC_FILES
17  tolua.c
18  toluabind.c
19)
20
21ADD_EXECUTABLE (toluagen ${TOLUAGEN_SRC_FILES})
22
23TARGET_LINK_LIBRARIES (toluagen
24  ${Lua_LIBRARIES}
25  tolualib
26  m
27)
28
29
30IF (Lua_VERSION EQUAL 5.0)
31  SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.0.pkg")
32ELSE (Lua_VERSION EQUAL 5.0)
33  SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg")
34ENDIF (Lua_VERSION EQUAL 5.0)
35
36GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen LOCATION)
37ADD_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
44SET (TOLUAEXE_SRC_FILES
45  tolua.c
46  toluabind_orxonox.c
47)
48
49ADD_EXECUTABLE (tolua ${TOLUAEXE_SRC_FILES})
50
51TARGET_LINK_LIBRARIES (tolua
52  ${Lua_LIBRARIES}
53  tolualib
54  m
55)
Note: See TracBrowser for help on using the repository browser.