Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 6, 2009, 9:00:32 PM (16 years ago)
Author:
rgrieder
Message:

Added regex based version checking for CEGUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/FindCEGUI.cmake

    r2510 r2573  
    1717# Several changes and additions by Fabian 'x3n' Landau
    1818# Lots of simplifications by Adrian Friedli
     19# Version detection by Reto Grieder
    1920#                 > www.orxonox.net <
    20 
    21 # TODO: Determine CEGUI version
    2221
    2322FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h
     
    6059ENDIF(WIN32)
    6160
     61# Look in CEGUIVersion.h for the version number
     62INCLUDE(DetermineVersion)
     63DetermineVersion(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h _CEGUI_VERSION_temp)
     64SET(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.
     67IF(${CEGUI_VERSION} LESS "0.5.0")
     68  MESSAGE(FATAL_ERROR "Minimum CEGUI version required is 0.5.0")
     69ENDIF(${CEGUI_VERSION} LESS "0.5.0")
     70
     71
    6272#    IF (NOT CEGUI_SCRIPT_LIBDIR)
    6373#        # Search Lua script module
     
    8999    CEGUI_LIBRARY_d
    90100    CEGUI_INCLUDE_DIR
     101        CEGUI_VERSION
    91102    #CEGUI_SCRIPT_LIBRARIES
    92103)
Note: See TracChangeset for help on using the changeset viewer.