Changeset 11118 for code/branches/cegui0.8/cmake
- Timestamp:
- Feb 16, 2016, 10:10:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cegui0.8/cmake/tools/FindCEGUI.cmake
r11101 r11118 32 32 33 33 # Determine CEGUI's version 34 FIND_FILE(CEGUI_VERSION_FILE CEGUIVersion.hVersion.h34 FIND_FILE(CEGUI_VERSION_FILE Version.h 35 35 PATHS $ENV{CEGUIDIR} 36 PATH_SUFFIXES include include/CEGUI 36 PATH_SUFFIXES include include/CEGUI include/cegui-0.8/CEGUI 37 37 ) 38 38 DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE}) 39 message("${CEGUI_VERSION}") 39 40 40 41 # Find CEGUI headers 41 42 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE) 43 message("CEGUI Version: ${_version_0_8_compare}") 42 44 # Version 0.8 introduced a new directory and file naming convention 43 45 IF(_version_0_8_compare GREATER -1) … … 45 47 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h 46 48 PATHS $ENV{CEGUIDIR} 47 PATH_SUFFIXES include 49 PATH_SUFFIXES include/cegui-0.8/ 48 50 ) 49 51 ELSE() … … 102 104 # For Mac OS X, tolua++ is a separate framework in the dependency package 103 105 ${DEP_FRAMEWORK_DIR} 104 NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system106 #NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system 105 107 ) 106 108 # Find CEGUI Tolua++ libraries … … 118 120 # Newer versions of CEGUI have the renderer for OGRE shipped with them 119 121 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE) 122 message("another version: ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre") 120 123 IF(_version_0_7_compare GREATER -1) 121 124 # Find CEGUI OGRE Renderer headers … … 124 127 $ENV{CEGUIDIR} 125 128 $ENV{CEGUIOGRERENDERERDIR} 126 ${CEGUI_INCLUDE_DIR}/ RendererModules/Ogre129 ${CEGUI_INCLUDE_DIR}/CEGUI/RendererModules/Ogre 127 130 PATH_SUFFIXES include include/CEGUI 128 131 )
Note: See TracChangeset
for help on using the changeset viewer.