Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8120


Ignore:
Timestamp:
Mar 26, 2011, 5:01:44 PM (14 years ago)
Author:
rgrieder
Message:

Cleanup in CEGUI framework finding.

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

Legend:

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

    r8119 r8120  
    3333ENDIF()
    3434
    35 SET(DEP_INCLUDE_DIR ${DEPENDENCY_PACKAGE_DIR}/include)
    36 SET(DEP_LIBRARY_DIR ${DEPENDENCY_PACKAGE_DIR}/lib)
    37 SET(DEP_BINARY_DIR  ${DEPENDENCY_PACKAGE_DIR}/bin)
     35SET(DEP_INCLUDE_DIR   ${DEPENDENCY_PACKAGE_DIR}/include)
     36SET(DEP_LIBRARY_DIR   ${DEPENDENCY_PACKAGE_DIR}/lib)
     37SET(DEP_BINARY_DIR    ${DEPENDENCY_PACKAGE_DIR}/bin)
    3838SET(DEP_FRAMEWORK_DIR ${DEPENDENCY_PACKAGE_DIR}/Library/Frameworks)
    3939
    40 # Sets the library path for the FIND_LIBRARY
    41 SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR})
     40# Sets the library and framwork paths for the FIND_LIBRARY commands
     41SET(CMAKE_LIBRARY_PATH   ${DEP_LIBRARY_DIR})
     42SET(CMAKE_FRAMEWORK_PATH ${DEP_FRAMEWORK_DIR})
    4243
    4344# Include paths and other special treatments
    44 SET(ENV{ALUTDIR}               ${DEP_FRAMEWORK_DIR})
    45 SET(ENV{BOOST_ROOT}            ${DEPENDENCY_PACKAGE_DIR})
    46 SET(ENV{CEGUIDIR}              ${DEP_FRAMEWORK_DIR})
    47 SET(ENV{CEGUILUADIR}           ${DEP_FRAMEWORK_DIR}/CEGUILuaScriptModule.framework)
    48 SET(ENV{CEGUITOLUADIR}         ${DEP_FRAMEWORK_DIR}/ceguitolua++.framework)
    49 SET(ENV{LUA5.1_DIR}            $ENV{CEGUILUADIR}/Versions/A/Resources/lua.framework)
    50 SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR})
    51 SET(ENV{VORBISDIR}             ${DEP_INCLUDE_DIR})
    52 SET(ENV{OGRE_HOME}             ${DEP_FRAMEWORK_DIR})
    53 SET(ENV{OGRE_PLUGIN_DIR}       ${DEP_BINARY_DIR})
     45SET(ENV{BOOST_ROOT}      ${DEPENDENCY_PACKAGE_DIR})
     46SET(ENV{LUA5.1_DIR}      ${DEP_FRAMEWORK_DIR}/CEGUI.framework/Versions/A/Resources)
     47SET(ENV{OGGDIR}          ${DEP_INCLUDE_DIR})
     48SET(ENV{VORBISDIR}       ${DEP_INCLUDE_DIR})
     49SET(ENV{OGRE_PLUGIN_DIR} ${DEP_BINARY_DIR})
    5450
    5551# For OS X 10.5 we have to ship modified headers to make it compile
  • code/branches/kicklib/cmake/tools/FindCEGUI.cmake

    r8113 r8120  
    3434FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h
    3535  PATHS $ENV{CEGUIDIR}
    36   PATH_SUFFIXES include include/CEGUI Headers
     36  PATH_SUFFIXES include include/CEGUI
    3737)
    3838
     
    6060    $ENV{CEGUILUADIR}
    6161    ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule
    62   PATH_SUFFIXES include include/CEGUI Headers
     62  PATH_SUFFIXES include include/CEGUI
    6363)
    6464# Find CEGUILua libraries
     
    8383    ${CEGUILUA_INCLUDE_DIR}/support/tolua++
    8484    # For Mac OS X, tolua++ is a separate framework in the dependency package
    85     $ENV{CEGUITOLUADIR}
    86   PATH_SUFFIXES Headers
     85    ${DEP_FRAMEWORK_DIR}
    8786  NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system
    8887)
     
    108107      $ENV{CEGUIOGRERENDERERDIR}
    109108      ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre
    110     PATH_SUFFIXES include include/CEGUI Headers
     109    PATH_SUFFIXES include include/CEGUI
    111110  )
    112111  # Find CEGUI OGRE Renderer libraries
Note: See TracChangeset for help on using the changeset viewer.