Changeset 2621 for code/branches/buildsystem2/src/tolua
- Timestamp:
- Jan 29, 2009, 11:35:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/src/tolua/CMakeLists.txt
r2619 r2621 1 ADD_C_FLAGS("-wd4996" MSVC) 1 ################### Tolua++ library ################### 2 2 3 ADD_LIBRARY(tolualib_orxonox SHARED 3 SET(TOLUA++_FILES 4 tolua_event.h 5 tolua++.h 6 4 7 tolua_event.c 5 8 tolua_is.c … … 8 11 tolua_to.c 9 12 ) 10 SET_TARGET_PROPERTIES(tolualib_orxonox PROPERTIES DEFINE_SYMBOL "TOLUA_SHARED_BUILD") 11 TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARIES}) 13 GENERATE_SOURCE_GROUPS(${TOLUA++_FILES}) 14 15 ADD_COMPILER_FLAGS("-w44996" MSVC) 16 17 ADD_LIBRARY(tolua++_orxonox SHARED ${TOLUA++_FILES}) 18 SET_TARGET_PROPERTIES(tolua++_orxonox PROPERTIES DEFINE_SYMBOL "TOLUA_SHARED_BUILD") 19 TARGET_LINK_LIBRARIES(tolua++_orxonox ${LUA_LIBRARIES}) 12 20 13 21 IF (NOT WIN32) … … 15 23 ENDIF (NOT WIN32) 16 24 17 SET(TOLUAGEN_SRC_FILES18 tolua.c19 )20 25 21 ADD_EXECUTABLE(toluaexe_orxonox ${TOLUAGEN_SRC_FILES}) 22 TARGET_LINK_LIBRARIES(toluaexe_orxonox tolualib_orxonox ${LUA_LIBRARIES}) 26 ################## Tolua++ generator ################## 23 27 24 #IF("${LUA_VERSION}" VERSION_LESS 5.1) 25 IF("${LUA_VERSION}" MATCHES "^5.0") 26 SET(TOLUA_ALL_PACK all-5.0.lua) 27 #ELSE("${LUA_VERSION}" VERSION_LESS 5.1) 28 ELSE("${LUA_VERSION}" MATCHES "^5.0") 29 SET(TOLUA_ALL_PACK all-5.1.lua) 30 #ENDIF("${LUA_VERSION}" VERSION_LESS 5.1) 31 ENDIF("${LUA_VERSION}" MATCHES "^5.0") 28 ADD_EXECUTABLE(tolua++app_orxonox tolua.c) 29 TARGET_LINK_LIBRARIES(tolua++app_orxonox tolua++_orxonox ${LUA_LIBRARIES}) 32 30 33 31 # Set some variables to the cache in order to use them in the TOLUA macro 34 SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/ ${TOLUA_ALL_PACK}" CACHE INTERNAL "")32 SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua" CACHE INTERNAL "") 35 33 SET(TOLUA_PARSER_DEPENDENCIES 36 tolua exe_orxonox37 ${CMAKE_CURRENT_SOURCE_DIR}/ ${TOLUA_ALL_PACK}34 tolua++app_orxonox 35 ${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua 38 36 ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua 39 37 ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua
Note: See TracChangeset
for help on using the changeset viewer.