Changeset 2670 for code/branches/buildsystem3/src/ceguilua
- Timestamp:
- Feb 15, 2009, 7:53:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/ceguilua/CMakeLists.txt
r2664 r2670 36 36 # Copy package files incrementally until the version is met 37 37 SET(CEGUILUA_VERSIONS 0.5.0 0.6.0 0.6.1 0.6.2) 38 FOREACH(_version ${CEGUILUA_VERSIONS}) 39 COMPARE_VERSION_STRINGS(${_version} ${CEGUI_VERSION} _compare_result) 40 IF(_compare_result EQUAL 1) 41 BREAK() # _version > CEGUI_VERSION 42 ENDIF() 38 # Only copy on version change 39 IF(NOT "${_CEGUI_VERSION_REF}" STREQUAL "${CEGUI_VERSION}" 40 OR NOT EXISTS ${CEGUILUA_BINARY_DIR}/exceptions.lua) 41 SET(_CEGUI_VERSION_REF ${CEGUI_VERSION} CACHE INTERNAL "Do not edit") 42 FOREACH(_version ${CEGUILUA_VERSIONS}) 43 COMPARE_VERSION_STRINGS(${_version} ${CEGUI_VERSION} _compare_result) 44 IF(_compare_result EQUAL 1) 45 BREAK() # _version > CEGUI_VERSION 46 ENDIF() 43 47 44 ADD_SUBDIRECTORY(ceguilua-${_version}) # Sets parent scope variable 45 FOREACH(_file ${_package_files}) 46 CONFIGURE_FILE(ceguilua-${_version}/package/${_file} ${CEGUILUA_BINARY_DIR}/${_file} COPYONLY) 47 ENDFOREACH(_file) 48 ENDFOREACH(_version) 48 ADD_SUBDIRECTORY(ceguilua-${_version}) # Sets parent scope variable _package_files 49 FOREACH(_file ${_package_files}) 50 CONFIGURE_FILE(ceguilua-${_version}/package/${_file} ${CEGUILUA_BINARY_DIR}/${_file} COPYONLY) 51 ENDFOREACH(_file) 52 ENDFOREACH(_version) 53 ENDIF() 49 54 50 55 # Create the tolua bind file. We could use the orignal file though, but it is 1.6MB... … … 62 67 ) 63 68 64 ADD_COMPILER_FLAGS("-w44996" MSVC) 69 # No warnings needed from third party libraries 70 ADD_COMPILER_FLAGS("-w") 65 71 66 72 SOURCE_GROUP("Source" FILES ${CEGUILUA_FILES}) … … 76 82 ) 77 83 84 SET_TARGET_PROPERTIES(ceguilua_orxonox PROPERTIES VERSION ${CEGUI_VERSION}) 85 78 86 ORXONOX_INSTALL(ceguilua_orxonox)
Note: See TracChangeset
for help on using the changeset viewer.