Changeset 11211 for code/branches/ogre1.9/cmake/tools
- Timestamp:
- Jul 5, 2016, 11:46:10 PM (8 years ago)
- Location:
- code/branches/ogre1.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9
- Property svn:mergeinfo changed
/code/branches/cegui0.8 (added) merged: 11110,11118,11121,11124
- Property svn:mergeinfo changed
-
code/branches/ogre1.9/cmake/tools/FindCEGUI.cmake
r11117 r11211 32 32 33 33 # 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 #) 38 file(GLOB CEGUI_VERSION_FILE "/usr/include/cegui-*/CEGUI/Version.h") 39 message("Found File: " ${CEGUI_VERSION_FILE}) 38 40 DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE}) 41 message("Found Version: ${CEGUI_VERSION}") 39 42 40 43 # Find CEGUI headers 41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE) 44 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare) 45 message("CEGUI Version: ${_version_0_8_compare}") 42 46 # Version 0.8 introduced a new directory and file naming convention 43 47 IF(_version_0_8_compare GREATER -1) … … 45 49 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h 46 50 PATHS $ENV{CEGUIDIR} 47 PATH_SUFFIXES include 51 PATH_SUFFIXES include/cegui-${CEGUI_VERSION}/ 48 52 ) 49 53 ELSE() … … 102 106 # For Mac OS X, tolua++ is a separate framework in the dependency package 103 107 ${DEP_FRAMEWORK_DIR} 104 NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system108 #NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system 105 109 ) 106 110 # Find CEGUI Tolua++ libraries … … 118 122 # Newer versions of CEGUI have the renderer for OGRE shipped with them 119 123 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE) 124 message("another version: ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre") 120 125 IF(_version_0_7_compare GREATER -1) 121 126 # Find CEGUI OGRE Renderer headers … … 124 129 $ENV{CEGUIDIR} 125 130 $ENV{CEGUIOGRERENDERERDIR} 126 ${CEGUI_INCLUDE_DIR}/ RendererModules/Ogre131 ${CEGUI_INCLUDE_DIR}/CEGUI/RendererModules/Ogre 127 132 PATH_SUFFIXES include include/CEGUI 128 133 )
Note: See TracChangeset
for help on using the changeset viewer.