Changeset 8082
- Timestamp:
- Mar 17, 2011, 2:58:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/cmake/tools/FindCEGUI.cmake
r8061 r8082 31 31 INCLUDE(HandleLibraryTypes) 32 32 33 # Find headers33 # Find CEGUI headers 34 34 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h 35 35 PATHS $ENV{CEGUIDIR} … … 54 54 ) 55 55 56 # Find CEGUILua headers 57 FIND_PATH(CEGUILUA_INCLUDE_DIR CEGUILua.h 58 PATHS $ENV{CEGUIDIR} ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule 59 PATH_SUFFIXES include include/CEGUI CEGUI.framework/Headers 60 ) 56 61 # Find CEGUILua libraries 57 62 FIND_LIBRARY(CEGUILUA_LIBRARY_OPTIMIZED … … 68 73 # Find CEGUI Tolua++ include file 69 74 # We only need to add this path since we use tolua++ like a normal 70 # dependency but it is shipped with CEGUI .75 # dependency but it is shipped with CEGUILua. 71 76 FIND_PATH(CEGUI_TOLUA_INCLUDE_DIR tolua++.h 72 77 PATHS 73 ${CEGUI _INCLUDE_DIR}78 ${CEGUILUA_INCLUDE_DIR} 74 79 # For newer CEGUI versions >= 0.7 75 ${CEGUI _INCLUDE_DIR}/ScriptingModules/LuaScriptModule/support/tolua++76 NO_DEFAULT_PATH # Has to be in a CEGUI_INCLUDE_DIR somewhere80 ${CEGUILUA_INCLUDE_DIR}/support/tolua++ 81 NO_DEFAULT_PATH # MUST be in CEGUILUA_INCLUDE_DIR somewhere 77 82 ) 78 83 # Find CEGUI Tolua++ libraries … … 91 96 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_compare TRUE) 92 97 IF(_version_compare GREATER -1) 98 # Find CEGUI OGRE Renderer headers 99 FIND_PATH(CEGUI_OGRE_RENDERER_INCLUDE_DIR CEGUIOgreRenderer.h 100 PATHS $ENV{CEGUIDIR} ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre 101 PATH_SUFFIXES include include/CEGUI CEGUI.framework/Headers 102 ) 93 103 # Find CEGUI OGRE Renderer libraries 94 104 FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED … … 102 112 PATH_SUFFIXES lib bin 103 113 ) 104 SET(CEGUI_OGRE_RENDERER_LIBRARY_NAME CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED) 114 SET(CEGUI_OGRE_RENDERER_REQUIRED_VARIABLES 115 CEGUI_OGRE_RENDERER_INCLUDE_DIR 116 CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED 117 ) 105 118 ELSE() 106 119 SET(CEGUI_OGRE_RENDERER_BUILD_REQUIRED TRUE) … … 112 125 CEGUI_INCLUDE_DIR 113 126 CEGUI_LIBRARY_OPTIMIZED 127 CEGUILUA_INCLUDE_DIR 114 128 CEGUILUA_LIBRARY_OPTIMIZED 115 129 CEGUI_TOLUA_INCLUDE_DIR 116 130 CEGUI_TOLUA_LIBRARY_OPTIMIZED 117 ${CEGUI_OGRE_RENDERER_ LIBRARY_NAME}131 ${CEGUI_OGRE_RENDERER_REQUIRED_VARIABLES} 118 132 ) 119 133 … … 130 144 CEGUI_LIBRARY_OPTIMIZED 131 145 CEGUI_LIBRARY_DEBUG 146 CEGUILUA_INCLUDE_DIR 132 147 CEGUILUA_LIBRARY_OPTIMIZED 133 148 CEGUILUA_LIBRARY_DEBUG … … 135 150 CEGUI_TOLUA_LIBRARY_OPTIMIZED 136 151 CEGUI_TOLUA_LIBRARY_DEBUG 152 CEGUI_OGRE_RENDERER_INCLUDE_DIR 137 153 CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED 138 154 CEGUI_OGRE_RENDERER_LIBRARY_DEBUG
Note: See TracChangeset
for help on using the changeset viewer.