Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 5, 2016, 11:46:10 PM (8 years ago)
Author:
bknecht
Message:

Merging cegui0.8 branch into ogre1.9 branch

Location:
code/branches/ogre1.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9

  • code/branches/ogre1.9/cmake/tools/FindCEGUI.cmake

    r11117 r11211  
    3232
    3333# Determine CEGUI's version
    34 FIND_FILE(CEGUI_VERSION_FILE CEGUIVersion.h Version.h
    35   PATHS $ENV{CEGUIDIR}
    36   PATH_SUFFIXES include include/CEGUI
    37 )
     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#)
     38file(GLOB CEGUI_VERSION_FILE "/usr/include/cegui-*/CEGUI/Version.h")
     39message("Found File: " ${CEGUI_VERSION_FILE})
    3840DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE})
     41message("Found Version: ${CEGUI_VERSION}")
    3942
    4043# Find CEGUI headers
    41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE)
     44COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare)
     45message("CEGUI Version: ${_version_0_8_compare}")
    4246# Version 0.8 introduced a new directory and file naming convention
    4347IF(_version_0_8_compare GREATER -1)
     
    4549  FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h
    4650    PATHS $ENV{CEGUIDIR}
    47     PATH_SUFFIXES include
     51    PATH_SUFFIXES include/cegui-${CEGUI_VERSION}/
    4852  )
    4953ELSE()
     
    102106    # For Mac OS X, tolua++ is a separate framework in the dependency package
    103107    ${DEP_FRAMEWORK_DIR}
    104   NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
     108    #NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
    105109)
    106110# Find CEGUI Tolua++ libraries
     
    118122# Newer versions of CEGUI have the renderer for OGRE shipped with them
    119123COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE)
     124message("another version: ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre")
    120125IF(_version_0_7_compare GREATER -1)
    121126  # Find CEGUI OGRE Renderer headers
     
    124129      $ENV{CEGUIDIR}
    125130      $ENV{CEGUIOGRERENDERERDIR}
    126       ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre
     131      ${CEGUI_INCLUDE_DIR}/CEGUI/RendererModules/Ogre
    127132    PATH_SUFFIXES include include/CEGUI
    128133  )
Note: See TracChangeset for help on using the changeset viewer.