Changeset 2608 for code/branches/buildsystem2/src/ceguilua/CMakeLists.txt
- Timestamp:
- Jan 29, 2009, 8:13:22 PM (15 years ago)
- Location:
- code/branches/buildsystem2/src/ceguilua
- Files:
-
- 1 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/src/ceguilua/CMakeLists.txt
r2604 r2608 1 SET( CEGUILUA_SRC_FILES 2 CEGUILua.cpp 3 CEGUILuaFunctor.cpp 4 lua_CEGUI.cpp 5 required.cpp 1 SET(CEGUILUA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION}/ceguilua) 2 SET(CEGUILUA_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) 3 4 SET(CEGUILUA_FILES 5 ${CEGUILUA_DIR}/CEGUILua.cpp 6 ${CEGUILUA_DIR}/CEGUILuaFunctor.cpp 7 ${CEGUILUA_DIR}/required.cpp 8 ${CEGUILUA_BINARY_DIR}/lua_CEGUI.cpp 9 10 ${CEGUILUA_DIR}/CEGUILua.h 11 ${CEGUILUA_DIR}/CEGUILuaFunctor.h 12 ${CEGUILUA_DIR}/required.h 6 13 ) 7 14 8 ADD_CXX_FLAGS("-wd4996" MSVC)15 INCLUDE(CompareVersionStrings) 9 16 10 ADD_LIBRARY( ceguilua_orxonox SHARED ${CEGUILUA_SRC_FILES} ) 17 # Copy package files incrementally until the version is met 18 SET(CEGUILUA_VERSIONS 0.5.0 0.6.0 0.6.1 0.6.2) 19 FOREACH(_version ${CEGUILUA_VERSIONS}) 20 COMPARE_VERSION_STRINGS(${_version} ${CEGUI_VERSION} _compare_result) 21 IF(_compare_result EQUAL 1) 22 BREAK() # _version > CEGUI_VERSION 23 ENDIF(_compare_result EQUAL 1) 24 ADD_SUBDIRECTORY(ceguilua-${_version}) 25 ENDFOREACH(_version) 11 26 27 # Create the tolua bind file. We could use the orignal file though, but it is 1.6MB... 28 ADD_CUSTOM_COMMAND( 29 OUTPUT ${CEGUILUA_BINARY_DIR}/lua_CEGUI.cpp 30 COMMAND toluaexe_orxonox -n CEGUI 31 -w ${CEGUILUA_BINARY_DIR} 32 -o lua_CEGUI.cpp 33 -L exceptions.lua 34 -s ${TOLUA_PARSER_SOURCE} 35 CEGUI.pkg 36 DEPENDS ${TOLUA_PARSER_DEPENDENCIES} 37 WORKING_DIRECTORY ${ORXONOX_LIBRARY_BIN_DIR} 38 COMMENT "Generating tolua bind files for package CEGUILua" 39 ) 40 41 ADD_CXX_FLAGS("-w44996" MSVC) 42 43 ADD_LIBRARY(ceguilua_orxonox SHARED ${CEGUILUA_FILES}) 12 44 SET_TARGET_PROPERTIES(ceguilua_orxonox PROPERTIES DEFINE_SYMBOL "CEGUILUA_EXPORTS") 13 45 TARGET_LINK_LIBRARIES(ceguilua_orxonox
Note: See TracChangeset
for help on using the changeset viewer.