Changeset 2509 for code/branches/buildsystem2/src/tolua/CMakeLists.txt
- Timestamp:
- Dec 17, 2008, 8:59:48 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2
- Property svn:ignore deleted
- Property svn:mergeinfo changed
/code/branches/buildsystem (added) merged: 1875,1882-1886,1975-1982,1991,1999,2054,2061,2135,2137-2139,2197-2199,2204,2214-2220,2223-2224,2229,2233-2244,2248-2249,2252-2253,2260,2275
-
code/branches/buildsystem2/src/tolua/CMakeLists.txt
r1815 r2509 1 SET 1 SET(TOLUALIB_SRC_FILES 2 2 tolua_event.c 3 3 tolua_is.c … … 7 7 ) 8 8 9 ADD_LIBRARY (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES}) 9 ADD_LIBRARY (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES}) 10 TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARIES}) 10 11 11 TARGET_LINK_LIBRARIES (tolualib_orxonox 12 lua_orxonox 12 13 SET(TOLUAGEN_SRC_FILES 14 tolua.c 13 15 ) 14 16 17 ADD_EXECUTABLE (toluaexe_orxonox ${TOLUAGEN_SRC_FILES}) 18 TARGET_LINK_LIBRARIES(toluaexe_orxonox tolualib_orxonox ${LUA_LIBRARIES}) 15 19 16 SET (TOLUAGEN_SRC_FILES 17 tolua.c 18 toluabind.c 20 # TODO: determine lua version and set appropriate pack file 21 SET(TOLUA_ALL_PACK all-5.1.lua) 22 SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" PARENT_SCOPE) 23 SET(TOLUA_PARSER_DEPENDENCIES 24 ${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK} 25 ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua 26 ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua 27 ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua 28 ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua 29 ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua 30 ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua 31 ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua 32 ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua 33 ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua 34 ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua 35 ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua 36 ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua 37 ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua 38 ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua 39 ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua 40 ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua 41 ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua 42 ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua 43 ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua 44 ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua 45 ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua 46 47 PARENT_SCOPE 19 48 ) 20 21 ADD_EXECUTABLE (toluagen_orxonox ${TOLUAGEN_SRC_FILES})22 23 TARGET_LINK_LIBRARIES (toluagen_orxonox24 lua_orxonox25 tolualib_orxonox26 m27 )28 29 30 SET (TOLUA_PACKAGE "../../src/tolua/tolua-5.1.pkg")31 GET_TARGET_PROPERTY(TOLUAGEN_EXE toluagen_orxonox LOCATION)32 ADD_CUSTOM_COMMAND(33 OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/toluabind_orxonox.c34 COMMAND ${TOLUAGEN_EXE} -n tolua -o ../../src/tolua/toluabind_orxonox.c -H ../../src/tolua/toluabind_orxonox.h ${TOLUA_PACKAGE}35 DEPENDS36 toluagen_orxonox37 tolua-5.1.pkg38 lua/compat-5.1.lua39 lua/compat.lua40 lua/basic.lua41 lua/feature.lua42 lua/verbatim.lua43 lua/code.lua44 lua/typedef.lua45 lua/container.lua46 lua/package.lua47 lua/module.lua48 lua/namespace.lua49 lua/define.lua50 lua/enumerate.lua51 lua/declaration.lua52 lua/variable.lua53 lua/array.lua54 lua/function.lua55 lua/operator.lua56 lua/class.lua57 lua/clean.lua58 lua/doit.lua59 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib60 )61 62 SET (TOLUAEXE_SRC_FILES63 tolua.c64 toluabind_orxonox.c65 )66 67 ADD_EXECUTABLE (tolua_orxonox ${TOLUAEXE_SRC_FILES})68 69 TARGET_LINK_LIBRARIES (tolua_orxonox70 lua_orxonox71 tolualib_orxonox72 m73 )
Note: See TracChangeset
for help on using the changeset viewer.