Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 12, 2009, 1:33:55 PM (15 years ago)
Author:
rgrieder
Message:
  • Use $ENV{BOOST_ROOT} to find boost if possible
  • Set TOLUA_PARSER_WORKING_DIRECTORY now defaults to ${CMAKE_RUNTIME_OUTPUT_PATH}
  • Added bin/release, bin/debug, release and debug to the Ogre library prefix paths
  • Lots of small fixes and changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/CMakeLists.txt

    r2582 r2583  
    1414
    1515# Set binary output directories
    16 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    17 SET(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/bin)
    18 MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)
     16SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
     17SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
     18SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    1919
    2020# Set Debug build to default when not having multi-config generator like msvc
     
    2525############## Platform Config ##################
    2626
    27 # Configre platform specific options
     27# Configure platform specific options
    2828INCLUDE(ConfigPlatforms)
    2929
     
    4040############### Library finding #################
    4141
    42 INCLUDE(FindPackageHandleStandardArgs)
    43 INCLUDE(HandleLibraryTypes)
     42# Performs the search and sets the variables
    4443
    45 # Performs the search and sets the variables
     44# Expand the next statement if newer boost versions than 1.36.1 are released
     45SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0 CACHE STRING "")
     46FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem)
    4647FIND_PACKAGE(OGRE REQUIRED)
    4748FIND_PACKAGE(CEGUI REQUIRED)
    4849FIND_PACKAGE(ENet REQUIRED)
    49 FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem)
    5050FIND_PACKAGE(OpenAL REQUIRED)
    5151FIND_PACKAGE(ALUT REQUIRED)
     
    5757FIND_PACKAGE(Lua50 QUIET)
    5858IF(NOT LUA50_FOUND)
    59     # Remove variables set by Lua50 and try with Lua51
    60     SET(LUA_INCLUDE_DIR)
    61     SET(LUA_LIBRARY_lua)
    62     SET(LUA_LIBRARY_lualib)
    63     SET(LUA_LIBRARIES)
    64     FIND_PACKAGE(Lua51 REQUIRED)
     59  # Remove variables set by Lua50 and try with Lua51
     60  SET(LUA_INCLUDE_DIR)
     61  SET(LUA_LIBRARY_lua)
     62  SET(LUA_LIBRARY_lualib)
     63  SET(LUA_LIBRARIES)
     64  FIND_PACKAGE(Lua51 REQUIRED)
    6565ENDIF(NOT LUA50_FOUND)
    6666# Determine Lua version (Lua50 may also find Lua51)
     
    7171FIND_PACKAGE(TCL QUIET)
    7272IF(NOT TCL_FOUND)
    73     MESSAGE(FATAL_ERROR "Tcl was not found.")
     73  MESSAGE(FATAL_ERROR "Tcl was not found.")
    7474ENDIF(NOT TCL_FOUND)
    7575
    7676# Hide variables created by CMake FindXX scripts
    7777MARK_AS_ADVANCED(
    78     LUA_LIBRARY_lua
    79     LUA_LIBRARY_lualib
    80     OPENAL_INCLUDE_DIR
    81     OPENAL_LIBRARY
     78  LUA_LIBRARY_lua
     79  LUA_LIBRARY_lualib
     80  OPENAL_INCLUDE_DIR
     81  OPENAL_LIBRARY
    8282)
    8383
Note: See TracChangeset for help on using the changeset viewer.