Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/tolua/CMakeLists.txt @ 2568

Last change on this file since 2568 was 2519, checked in by rgrieder, 16 years ago

It is no more necessary to include UseTolua.cmake just before the invocation of the TOLUA macro.
The include has been moved to src/CMakeLists.txt

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1ADD_LIBRARY(tolualib_orxonox STATIC
2  tolua_event.c
3  tolua_is.c
4  tolua_map.c
5  tolua_push.c
6  tolua_to.c
7)
8
9#INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib)
10
11SET(TOLUAGEN_SRC_FILES
12  tolua.c
13)
14
15ADD_EXECUTABLE(toluaexe_orxonox ${TOLUAGEN_SRC_FILES})
16TARGET_LINK_LIBRARIES(toluaexe_orxonox tolualib_orxonox ${LUA_LIBRARIES})
17
18#IF("${LUA_VERSION}" VERSION_LESS 5.1)
19IF("${LUA_VERSION}" MATCHES "^5.0")
20  SET(TOLUA_ALL_PACK all-5.0.lua)
21#ELSE("${LUA_VERSION}" VERSION_LESS 5.1)
22ELSE("${LUA_VERSION}" MATCHES "^5.0")
23  SET(TOLUA_ALL_PACK all-5.1.lua)
24#ENDIF("${LUA_VERSION}" VERSION_LESS 5.1)
25ENDIF("${LUA_VERSION}" MATCHES "^5.0")
26
27# Set some variables to the parent scope in order to use them in the TOLUA macro
28GET_TARGET_PROPERTY(_temp_location toluaexe_orxonox LOCATION)
29SET(TOLUA_PARSER_EXECUTABLE ${_temp_location} PARENT_SCOPE)
30SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" PARENT_SCOPE)
31SET(TOLUA_PARSER_DEPENDENCIES
32  toluaexe_orxonox
33  ${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}
34  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua
35  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua
36  ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua
37  ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua
38  ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua
39  ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua
40  ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua
41  ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua
42  ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua
43  ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua
44  ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua
45  ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua
46  ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua
47  ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua
48  ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua
49  ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua
50  ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua
51  ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua
52  ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua
53  ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua
54  ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua
55
56  PARENT_SCOPE
57)
Note: See TracBrowser for help on using the repository browser.