Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 16, 2016, 10:10:43 PM (8 years ago)
Author:
bknecht
Message:

initial commit to get orxonox to find and compile and start with cegui0.8. doesn't work yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8/cmake/tools/FindCEGUI.cmake

    r11101 r11118  
    3232
    3333# Determine CEGUI's version
    34 FIND_FILE(CEGUI_VERSION_FILE CEGUIVersion.h Version.h
     34FIND_FILE(CEGUI_VERSION_FILE Version.h
    3535  PATHS $ENV{CEGUIDIR}
    36   PATH_SUFFIXES include include/CEGUI
     36  PATH_SUFFIXES include include/CEGUI include/cegui-0.8/CEGUI
    3737)
    3838DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE})
     39message("${CEGUI_VERSION}")
    3940
    4041# Find CEGUI headers
    4142COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE)
     43message("CEGUI Version: ${_version_0_8_compare}")
    4244# Version 0.8 introduced a new directory and file naming convention
    4345IF(_version_0_8_compare GREATER -1)
     
    4547  FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h
    4648    PATHS $ENV{CEGUIDIR}
    47     PATH_SUFFIXES include
     49    PATH_SUFFIXES include/cegui-0.8/
    4850  )
    4951ELSE()
     
    102104    # For Mac OS X, tolua++ is a separate framework in the dependency package
    103105    ${DEP_FRAMEWORK_DIR}
    104   NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
     106    #NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
    105107)
    106108# Find CEGUI Tolua++ libraries
     
    118120# Newer versions of CEGUI have the renderer for OGRE shipped with them
    119121COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE)
     122message("another version: ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre")
    120123IF(_version_0_7_compare GREATER -1)
    121124  # Find CEGUI OGRE Renderer headers
     
    124127      $ENV{CEGUIDIR}
    125128      $ENV{CEGUIOGRERENDERERDIR}
    126       ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre
     129      ${CEGUI_INCLUDE_DIR}/CEGUI/RendererModules/Ogre
    127130    PATH_SUFFIXES include include/CEGUI
    128131  )
Note: See TracChangeset for help on using the changeset viewer.