Changeset 9670 for code/branches/libs/cmake/tools/FindCEGUI.cmake
- Timestamp:
- Sep 8, 2013, 5:34:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libs/cmake/tools/FindCEGUI.cmake
r9163 r9670 31 31 INCLUDE(HandleLibraryTypes) 32 32 33 # Find CEGUI headers34 FIND_ PATH(CEGUI_INCLUDE_DIR CEGUI.h33 # Determine CEGUI's version 34 FIND_FILE(CEGUI_VERSION_FILE CEGUIVersion.h Version.h 35 35 PATHS $ENV{CEGUIDIR} 36 36 PATH_SUFFIXES include include/CEGUI 37 37 ) 38 DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE}) 38 39 39 # Inspect CEGUIVersion.h for the version number 40 DETERMINE_VERSION(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h) 40 # Find CEGUI headers 41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE) 42 # Version 0.8 introduced a new directory and file naming convention 43 IF(_version_0_8_compare GREATER -1) 44 # 0.8 and newer 45 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h 46 PATHS $ENV{CEGUIDIR} 47 PATH_SUFFIXES include 48 ) 49 ELSE() 50 # 0.8 and older 51 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h 52 PATHS $ENV{CEGUIDIR} 53 PATH_SUFFIXES include include/CEGUI 54 ) 55 ENDIF() 41 56 42 57 # Find CEGUI library 43 58 FIND_LIBRARY(CEGUI_LIBRARY_OPTIMIZED 44 NAMES CEGUIBase CEGUI 59 NAMES CEGUIBase CEGUI CEGUIBase-0 45 60 PATHS $ENV{CEGUIDIR} 46 61 PATH_SUFFIXES lib bin … … 55 70 56 71 # Find CEGUILua headers 57 FIND_PATH(CEGUILUA_INCLUDE_DIR CEGUILua.h 72 FIND_PATH(CEGUILUA_INCLUDE_DIR CEGUILua.h Functor.h 58 73 PATHS 59 74 $ENV{CEGUIDIR} 60 75 $ENV{CEGUILUADIR} 61 76 ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule 77 ${CEGUI_INCLUDE_DIR}/CEGUI/ScriptModules/Lua 62 78 PATH_SUFFIXES include include/CEGUI 63 79 ) 64 80 # Find CEGUILua libraries 65 81 FIND_LIBRARY(CEGUILUA_LIBRARY_OPTIMIZED 66 NAMES CEGUILua CEGUILuaScriptModule 82 NAMES CEGUILua CEGUILuaScriptModule CEGUILuaScriptModule-0 67 83 PATHS $ENV{CEGUIDIR} $ENV{CEGUILUADIR} 68 84 PATH_SUFFIXES lib bin … … 82 98 # For newer CEGUI versions >= 0.7 83 99 ${CEGUILUA_INCLUDE_DIR}/support/tolua++ 100 ${DEP_INCLUDE_DIR}/tolua++/include 84 101 # For Mac OS X, tolua++ is a separate framework in the dependency package 85 102 ${DEP_FRAMEWORK_DIR} … … 99 116 100 117 # Newer versions of CEGUI have the renderer for OGRE shipped with them 101 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_ compare TRUE)102 IF(_version_ compare GREATER -1)118 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE) 119 IF(_version_0_7_compare GREATER -1) 103 120 # Find CEGUI OGRE Renderer headers 104 FIND_PATH(CEGUI_OGRE_RENDERER_INCLUDE_DIR CEGUIOgreRenderer.h 121 FIND_PATH(CEGUI_OGRE_RENDERER_INCLUDE_DIR CEGUIOgreRenderer.h Renderer.h 105 122 PATHS 106 123 $ENV{CEGUIDIR} … … 111 128 # Find CEGUI OGRE Renderer libraries 112 129 FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED 113 NAMES CEGUIOgreRenderer 130 NAMES CEGUIOgreRenderer CEGUIOgreRenderer-0 114 131 PATHS $ENV{CEGUIDIR} $ENV{CEGUIOGRERENDERERDIR} 115 132 PATH_SUFFIXES lib bin
Note: See TracChangeset
for help on using the changeset viewer.