Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 25, 2011, 2:39:52 AM (14 years ago)
Author:
rgrieder
Message:

Added some paths for CEGUI library finding on Mac OS X.

Location:
code/branches/kicklib/cmake
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/cmake/PackageConfigOSX.cmake

    r8094 r8113  
    4444SET(ENV{ALUTDIR}               ${DEP_FRAMEWORK_DIR})
    4545SET(ENV{BOOST_ROOT}            ${DEPENDENCY_PACKAGE_DIR})
    46 SET(ENV{CEGUIDIR}              ${DEP_FRAMEWORK_DIR})
    47 SET(ENV{LUA_DIR}               ${DEP_INCLUDE_DIR}/lua)
    48 SET(ENV{LUA5.1_DIR}            ${DEP_INCLUDE_DIR}/lua)
     46SET(ENV{CEGUIDIR}              ${DEP_FRAMEWORK_DIR}/CEGUI.framework)
     47SET(ENV{CEGUILUADIR}           ${DEP_FRAMEWORK_DIR}/CEGUILuaScriptModule.framework)
     48SET(ENV{CEGUITOLUADIR}         ${DEP_FRAMEWORK_DIR}/ceguitolua++.framework)
     49SET(ENV{LUA5.1_DIR}            $ENV{CEGUILUADIR}/Versions/A/Resources/lua.framework
    4950SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR})
    5051SET(ENV{VORBISDIR}             ${DEP_INCLUDE_DIR})
  • code/branches/kicklib/cmake/tools/FindCEGUI.cmake

    r8095 r8113  
    3434FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h
    3535  PATHS $ENV{CEGUIDIR}
    36   PATH_SUFFIXES include include/CEGUI CEGUI.framework/Headers
     36  PATH_SUFFIXES include include/CEGUI Headers
    3737)
    3838
     
    4444  NAMES CEGUIBase CEGUI
    4545  PATHS $ENV{CEGUIDIR}
    46   PATH_SUFFIXES lib bin CEGUIBase.framework CEGUI.framework
     46  PATH_SUFFIXES lib bin
    4747)
    4848FIND_LIBRARY(CEGUI_LIBRARY_DEBUG
     
    5656# Find CEGUILua headers
    5757FIND_PATH(CEGUILUA_INCLUDE_DIR CEGUILua.h
    58   PATHS $ENV{CEGUIDIR} ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule
    59   PATH_SUFFIXES include include/CEGUI CEGUILuaScriptModule.framework/Headers
     58  PATHS
     59    $ENV{CEGUIDIR}
     60    $ENV{CEGUILUADIR}
     61    ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule
     62  PATH_SUFFIXES include include/CEGUI Headers
    6063)
    6164# Find CEGUILua libraries
    6265FIND_LIBRARY(CEGUILUA_LIBRARY_OPTIMIZED
    6366  NAMES CEGUILua CEGUILuaScriptModule
    64   PATHS $ENV{CEGUIDIR}
    65   PATH_SUFFIXES lib bin CEGUILuaScriptModule.framework
     67  PATHS $ENV{CEGUIDIR} $ENV{CEGUILUADIR}
     68  PATH_SUFFIXES lib bin
    6669)
    6770FIND_LIBRARY(CEGUILUA_LIBRARY_DEBUG
    6871  NAMES CEGUILuad CEGUILua_d CEGUILuaScriptModuled CEGUILuaScriptModule_d
    69   PATHS $ENV{CEGUIDIR}
     72  PATHS $ENV{CEGUIDIR} $ENV{CEGUILUADIR}
    7073  PATH_SUFFIXES lib bin
    7174)
     
    7982    # For newer CEGUI versions >= 0.7
    8083    ${CEGUILUA_INCLUDE_DIR}/support/tolua++
    81     # For Apples
    82     $ENV{CEGUIDIR}
    83   PATH_SUFFIXES ceguitolua++.framework/Headers
    84   NO_DEFAULT_PATH # MUST be in CEGUILUA_INCLUDE_DIR somewhere
     84    # For Mac OS X, tolua++ is a separate framework in the dependency package
     85    $ENV{CEGUITOLUADIR}
     86  PATH_SUFFIXES Headers
     87  NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
    8588)
    8689# Find CEGUI Tolua++ libraries
    8790FIND_LIBRARY(CEGUI_TOLUA_LIBRARY_OPTIMIZED
    8891  NAMES CEGUItoluapp tolua++ ceguitolua++
    89   PATHS $ENV{CEGUIDIR}
    90   PATH_SUFFIXES lib bin ceguitolua++.framework
     92  PATHS $ENV{CEGUIDIR} ${CEGUITOLUADIR}
     93  PATH_SUFFIXES lib bin
    9194)
    9295FIND_LIBRARY(CEGUI_TOLUA_LIBRARY_DEBUG
    9396  NAMES CEGUItoluappd CEGUItoluapp_d tolua++d tolua++_d
    94   PATHS $ENV{CEGUIDIR}
     97  PATHS $ENV{CEGUIDIR} ${CEGUITOLUADIR}
    9598  PATH_SUFFIXES lib bin
    9699)
     
    101104  # Find CEGUI OGRE Renderer headers
    102105  FIND_PATH(CEGUI_OGRE_RENDERER_INCLUDE_DIR CEGUIOgreRenderer.h
    103     PATHS $ENV{CEGUIDIR} ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre
    104     PATH_SUFFIXES include include/CEGUI CEGUI.framework/Headers
     106    PATHS
     107      $ENV{CEGUIDIR}
     108      $ENV{CEGUIOGRERENDERERDIR}
     109      ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre
     110    PATH_SUFFIXES include include/CEGUI Headers
    105111  )
    106112  # Find CEGUI OGRE Renderer libraries
    107113  FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED
    108114    NAMES CEGUIOgreRenderer
    109     PATHS $ENV{CEGUIDIR}
     115    PATHS $ENV{CEGUIDIR} $ENV{CEGUIOGRERENDERERDIR}
    110116    PATH_SUFFIXES lib bin
    111117  )
    112118  FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_DEBUG
    113119    NAMES CEGUIOgreRendererd CEGUIOgreRenderer_d
    114     PATHS $ENV{CEGUIDIR}
     120    PATHS $ENV{CEGUIDIR} $ENV{CEGUIOGRERENDERERDIR}
    115121    PATH_SUFFIXES lib bin
    116122  )
  • code/branches/kicklib/cmake/tools/FindLua5.1.cmake

    r7951 r8113  
    5656# Find include path
    5757FIND_PATH(LUA5.1_INCLUDE_DIR lua.h
    58   PATHS $ENV{LUA5.1_DIR}
    59   PATH_SUFFIXES include/lua51 include/lua5.1 include/lua include
     58  PATHS $ENV{LUA5.1_DIR} $ENV{LUA_DIR}
     59  PATH_SUFFIXES include/lua51 include/lua5.1 include/lua include Headers
    6060)
    6161
Note: See TracChangeset for help on using the changeset viewer.