Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 21, 2018, 12:03:52 AM (7 years ago)
Author:
landauf
Message:

merged ogre1.9 (including cegui0.8) into new branch

Location:
code/branches/cegui0.8_ogre1.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9

  • code/branches/cegui0.8_ogre1.9/cmake/tools/FindCEGUI.cmake

    r11117 r11795  
    3939
    4040# Find CEGUI headers
    41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE)
     41COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare)
    4242# Version 0.8 introduced a new directory and file naming convention
    4343IF(_version_0_8_compare GREATER -1)
  • code/branches/cegui0.8_ogre1.9/cmake/tools/FindOGRE.cmake

    r8351 r11795  
    3838# Inspect OgrePrerquisites.h for the version number
    3939DETERMINE_VERSION(OGRE ${OGRE_INCLUDE_DIR}/OgrePrerequisites.h)
     40COMPARE_VERSION_STRINGS("${OGRE_VERSION}" "1.9" _version_1_9_compare TRUE)
     41# Version 1.9 moved overlays into a separate component (which means we must find and link to another library)
     42IF(_version_1_9_compare GREATER -1)
     43  FIND_LIBRARY(OGRE_OVERLAY_LIBRARY_OPTIMIZED
     44    NAMES OgreOverlay
     45    PATHS $ENV{OGRE_HOME}
     46    PATH_SUFFIXES lib bin/Release bin/release Release release
     47  )
     48  FIND_LIBRARY(OGRE_OVERLAY_LIBRARY_DEBUG
     49    NAMES OgreOverlayd OgreOverlay_d OgreOverlayD OgreOverlay_D
     50    PATHS $ENV{OGRE_HOME}
     51    PATH_SUFFIXES lib bin/Debug bin/debug Debug debug
     52  )
     53  SET(OGRE_REQUIRED_VARIABLES
     54    OGRE_OVERLAY_LIBRARY_OPTIMIZED
     55  )
     56ENDIF()
    4057
    4158# Handle the REQUIRED argument and set OGRE_FOUND
     
    4461  OGRE_LIBRARY_OPTIMIZED
    4562  OGRE_INCLUDE_DIR
     63  ${OGRE_REQUIRED_VARIABLES}
    4664)
    4765
    4866# Collect optimized and debug libraries
    4967HANDLE_LIBRARY_TYPES(OGRE)
     68HANDLE_LIBRARY_TYPES(OGRE_OVERLAY)
    5069
    5170MARK_AS_ADVANCED(
     
    5372  OGRE_LIBRARY_OPTIMIZED
    5473  OGRE_LIBRARY_DEBUG
     74  OGRE_OVERLAY_LIBRARY_OPTIMIZED
     75  OGRE_OVERLAY_LIBRARY_DEBUG
    5576)
Note: See TracChangeset for help on using the changeset viewer.