Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2610 was 2599, checked in by rgrieder, 16 years ago
  • Added orxonox version info. However I don't exactly what the actual is now, so please correct me if I'm wrong.
  • Small changes and fixes
  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1ADD_C_FLAGS("-wd4996" MSVC)
2
3ADD_LIBRARY(tolualib_orxonox SHARED
4  tolua_event.c
5  tolua_is.c
6  tolua_map.c
7  tolua_push.c
8  tolua_to.c
9)
10SET_TARGET_PROPERTIES(tolualib_orxonox PROPERTIES DEFINE_SYMBOL "TOLUA_SHARED_BUILD")
11TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARY})
12
13IF (NOT WIN32)
14#  INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib)
15ENDIF (NOT WIN32)
16
17SET(TOLUAGEN_SRC_FILES
18  tolua.c
19)
20
21ADD_EXECUTABLE(toluaexe_orxonox ${TOLUAGEN_SRC_FILES})
22TARGET_LINK_LIBRARIES(toluaexe_orxonox tolualib_orxonox ${LUA_LIBRARIES})
23
24#IF("${LUA_VERSION}" VERSION_LESS 5.1)
25IF("${LUA_VERSION}" MATCHES "^5.0")
26  SET(TOLUA_ALL_PACK all-5.0.lua)
27#ELSE("${LUA_VERSION}" VERSION_LESS 5.1)
28ELSE("${LUA_VERSION}" MATCHES "^5.0")
29  SET(TOLUA_ALL_PACK all-5.1.lua)
30#ENDIF("${LUA_VERSION}" VERSION_LESS 5.1)
31ENDIF("${LUA_VERSION}" MATCHES "^5.0")
32
33# Set some variables to the cache in order to use them in the TOLUA macro
34SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" CACHE INTERNAL "")
35SET(TOLUA_PARSER_DEPENDENCIES
36  toluaexe_orxonox
37  ${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}
38  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua
39  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua
40  ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua
41  ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua
42  ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua
43  ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua
44  ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua
45  ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua
46  ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua
47  ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua
48  ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua
49  ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua
50  ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua
51  ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua
52  ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua
53  ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua
54  ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua
55  ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua
56  ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua
57  ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua
58  ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua
59
60  CACHE INTERNAL ""
61)
Note: See TracBrowser for help on using the repository browser.