Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem/src/tolua/CMakeLists.txt @ 2518

Last change on this file since 2518 was 2399, checked in by adrfried, 16 years ago

tolua fixed for mingw, libtolua linked statically

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