Changeset 2573 for code/branches/buildsystem2/cmake/FindCEGUI.cmake
- Timestamp:
- Jan 6, 2009, 9:00:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/FindCEGUI.cmake
r2510 r2573 17 17 # Several changes and additions by Fabian 'x3n' Landau 18 18 # Lots of simplifications by Adrian Friedli 19 # Version detection by Reto Grieder 19 20 # > www.orxonox.net < 20 21 # TODO: Determine CEGUI version22 21 23 22 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h … … 60 59 ENDIF(WIN32) 61 60 61 # Look in CEGUIVersion.h for the version number 62 INCLUDE(DetermineVersion) 63 DetermineVersion(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h _CEGUI_VERSION_temp) 64 SET(CEGUI_VERSION "${_CEGUI_VERSION_temp}" CACHE STRING "") 65 # LESS can be dangerous since it only compares strings. 66 # Howerver VERSION_LESS seems to be having serious issues. 67 IF(${CEGUI_VERSION} LESS "0.5.0") 68 MESSAGE(FATAL_ERROR "Minimum CEGUI version required is 0.5.0") 69 ENDIF(${CEGUI_VERSION} LESS "0.5.0") 70 71 62 72 # IF (NOT CEGUI_SCRIPT_LIBDIR) 63 73 # # Search Lua script module … … 89 99 CEGUI_LIBRARY_d 90 100 CEGUI_INCLUDE_DIR 101 CEGUI_VERSION 91 102 #CEGUI_SCRIPT_LIBRARIES 92 103 )
Note: See TracChangeset
for help on using the changeset viewer.