Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 15, 2017, 4:29:18 PM (7 years ago)
Author:
landauf
Message:

reverted some changes in cmake script; also inject time pulse to CeguiContext (this is recommended by the cegui documentation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9/cmake/tools/FindCEGUI.cmake

    r11211 r11454  
    3232
    3333# Determine CEGUI's version
    34 #FIND_FILE(CEGUI_VERSION_FILE Version.h
    35 #  PATHS $ENV{CEGUIDIR}
    36 #  PATH_SUFFIXES include include/CEGUI include/cegui-0.8.4/CEGUI
    37 #)
    38 file(GLOB CEGUI_VERSION_FILE "/usr/include/cegui-*/CEGUI/Version.h")
    39 message("Found File: " ${CEGUI_VERSION_FILE})
     34FIND_FILE(CEGUI_VERSION_FILE CEGUIVersion.h Version.h
     35  PATHS $ENV{CEGUIDIR}
     36  PATH_SUFFIXES include include/CEGUI
     37)
    4038DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE})
    41 message("Found Version: ${CEGUI_VERSION}")
    4239
    4340# Find CEGUI headers
    4441COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare)
    45 message("CEGUI Version: ${_version_0_8_compare}")
    4642# Version 0.8 introduced a new directory and file naming convention
    4743IF(_version_0_8_compare GREATER -1)
     
    4945  FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h
    5046    PATHS $ENV{CEGUIDIR}
    51     PATH_SUFFIXES include/cegui-${CEGUI_VERSION}/
     47    PATH_SUFFIXES include
    5248  )
    5349ELSE()
     
    106102    # For Mac OS X, tolua++ is a separate framework in the dependency package
    107103    ${DEP_FRAMEWORK_DIR}
    108     #NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
     104  NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
    109105)
    110106# Find CEGUI Tolua++ libraries
     
    122118# Newer versions of CEGUI have the renderer for OGRE shipped with them
    123119COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE)
    124 message("another version: ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre")
    125120IF(_version_0_7_compare GREATER -1)
    126121  # Find CEGUI OGRE Renderer headers
     
    129124      $ENV{CEGUIDIR}
    130125      $ENV{CEGUIOGRERENDERERDIR}
    131       ${CEGUI_INCLUDE_DIR}/CEGUI/RendererModules/Ogre
     126      ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre
    132127    PATH_SUFFIXES include include/CEGUI
    133128  )
Note: See TracChangeset for help on using the changeset viewer.