Changeset 11454 for code/branches/ogre1.9/cmake
- Timestamp:
- Oct 15, 2017, 4:29:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9/cmake/tools/FindCEGUI.cmake
r11211 r11454 32 32 33 33 # 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}) 34 FIND_FILE(CEGUI_VERSION_FILE CEGUIVersion.h Version.h 35 PATHS $ENV{CEGUIDIR} 36 PATH_SUFFIXES include include/CEGUI 37 ) 40 38 DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE}) 41 message("Found Version: ${CEGUI_VERSION}")42 39 43 40 # Find CEGUI headers 44 41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare) 45 message("CEGUI Version: ${_version_0_8_compare}")46 42 # Version 0.8 introduced a new directory and file naming convention 47 43 IF(_version_0_8_compare GREATER -1) … … 49 45 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h 50 46 PATHS $ENV{CEGUIDIR} 51 PATH_SUFFIXES include /cegui-${CEGUI_VERSION}/47 PATH_SUFFIXES include 52 48 ) 53 49 ELSE() … … 106 102 # For Mac OS X, tolua++ is a separate framework in the dependency package 107 103 ${DEP_FRAMEWORK_DIR} 108 #NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system104 NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system 109 105 ) 110 106 # Find CEGUI Tolua++ libraries … … 122 118 # Newer versions of CEGUI have the renderer for OGRE shipped with them 123 119 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE) 124 message("another version: ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre")125 120 IF(_version_0_7_compare GREATER -1) 126 121 # Find CEGUI OGRE Renderer headers … … 129 124 $ENV{CEGUIDIR} 130 125 $ENV{CEGUIOGRERENDERERDIR} 131 ${CEGUI_INCLUDE_DIR}/ CEGUI/RendererModules/Ogre126 ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre 132 127 PATH_SUFFIXES include include/CEGUI 133 128 )
Note: See TracChangeset
for help on using the changeset viewer.