Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8082


Ignore:
Timestamp:
Mar 17, 2011, 2:58:58 AM (14 years ago)
Author:
rgrieder
Message:

Make sure all required CEGUI extras are confirmed to be found by the CMake run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/cmake/tools/FindCEGUI.cmake

    r8061 r8082  
    3131INCLUDE(HandleLibraryTypes)
    3232
    33 # Find headers
     33# Find CEGUI headers
    3434FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h
    3535  PATHS $ENV{CEGUIDIR}
     
    5454)
    5555
     56# Find CEGUILua headers
     57FIND_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)
    5661# Find CEGUILua libraries
    5762FIND_LIBRARY(CEGUILUA_LIBRARY_OPTIMIZED
     
    6873# Find CEGUI Tolua++ include file
    6974# 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.
    7176FIND_PATH(CEGUI_TOLUA_INCLUDE_DIR tolua++.h
    7277  PATHS
    73     ${CEGUI_INCLUDE_DIR}
     78    ${CEGUILUA_INCLUDE_DIR}
    7479    # 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 somewhere
     80    ${CEGUILUA_INCLUDE_DIR}/support/tolua++
     81  NO_DEFAULT_PATH # MUST be in CEGUILUA_INCLUDE_DIR somewhere
    7782)
    7883# Find CEGUI Tolua++ libraries
     
    9196COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_compare TRUE)
    9297IF(_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  )
    93103  # Find CEGUI OGRE Renderer libraries
    94104  FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED
     
    102112    PATH_SUFFIXES lib bin
    103113  )
    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  )
    105118ELSE()
    106119  SET(CEGUI_OGRE_RENDERER_BUILD_REQUIRED TRUE)
     
    112125  CEGUI_INCLUDE_DIR
    113126  CEGUI_LIBRARY_OPTIMIZED
     127  CEGUILUA_INCLUDE_DIR
    114128  CEGUILUA_LIBRARY_OPTIMIZED
    115129  CEGUI_TOLUA_INCLUDE_DIR
    116130  CEGUI_TOLUA_LIBRARY_OPTIMIZED
    117   ${CEGUI_OGRE_RENDERER_LIBRARY_NAME}
     131  ${CEGUI_OGRE_RENDERER_REQUIRED_VARIABLES}
    118132)
    119133
     
    130144  CEGUI_LIBRARY_OPTIMIZED
    131145  CEGUI_LIBRARY_DEBUG
     146  CEGUILUA_INCLUDE_DIR
    132147  CEGUILUA_LIBRARY_OPTIMIZED
    133148  CEGUILUA_LIBRARY_DEBUG
     
    135150  CEGUI_TOLUA_LIBRARY_OPTIMIZED
    136151  CEGUI_TOLUA_LIBRARY_DEBUG
     152  CEGUI_OGRE_RENDERER_INCLUDE_DIR
    137153  CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED
    138154  CEGUI_OGRE_RENDERER_LIBRARY_DEBUG
Note: See TracChangeset for help on using the changeset viewer.