Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1805


Ignore:
Timestamp:
Sep 21, 2008, 6:04:20 PM (16 years ago)
Author:
rgrieder
Message:

attempt to read CEGUIVersion.h

File:
1 edited

Legend:

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

    r1776 r1805  
    8686
    8787IF (CEGUI_FOUND)
     88    # check CEGUIVersion.h to set the version macro
     89    FILE(READ "${CEGUI_INCLUDE_DIR}/CEGUIVersion.h" ceguiVersionFile)
     90    STRING(REGEX MATCH "\\#define CEGUI_VERSION_MINOR ([56])" "\\1" CEGUI_VERSION ${ceguiVersionFile})
     91    MESSAGE(STATUS "${CEGUI_VERSION}")
    8892    IF (NOT CEGUI_FIND_QUIETLY)
    8993        MESSAGE(STATUS "CEGUI was found.")
Note: See TracChangeset for help on using the changeset viewer.