Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3370 for code/trunk/cmake


Ignore:
Timestamp:
Jul 30, 2009, 2:10:44 PM (15 years ago)
Author:
rgrieder
Message:

Merged resource branch back to the trunk. Changes:

  • Automated graphics loading by evaluating whether a GameState requires it
  • Using native Tcl library (x3n)

Windows users: Update your dependency package!

Location:
code/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/cmake/Media.cmake

    r2721 r3370  
    4545################ Installation #################
    4646
    47 # Try no to copy both tcl script file libraries
    48 IF(TCL_LIBRARY MATCHES "85|8\\.5")
    49   SET(TCL_EXCLUDE_PATTERN "tcl8\\.4")
    50 ELSEIF(TCL_LIBRARY MATCHES "84|8\\.4")
    51   SET(TCL_EXCLUDE_PATTERN "tcl8\\.5")
    52 ENDIF()
    53 
    5447INSTALL(
    5548  DIRECTORY ${CMAKE_MEDIA_OUTPUT_DIRECTORY}/
    5649  DESTINATION ${ORXONOX_MEDIA_INSTALL_PATH}
    57   REGEX "\\.svn$|_svn$|backToPNG|${TCL_EXCLUDE_PATTERN}" EXCLUDE
     50  REGEX "\\.svn$|_svn$|backToPNG" EXCLUDE
    5851)
  • code/trunk/cmake/PackageConfig.cmake

    r3309 r3370  
    55# MAJOR: Interface breaking change somewhere (library version changed, etc.)
    66# MINOR: Bug fix or small conformant changes
    7 SET(DEPENDENCY_VERSION_REQUIRED 2)
     7SET(DEPENDENCY_VERSION_REQUIRED 3)
    88IF(NOT EXISTS ${DEPENDENCY_PACKAGE_DIR}/version.txt)
    99  SET(DEPENDENCY_VERSION 1.0)
     
    3131
    3232# Include paths and other special treatments
    33 SET(ENV{ALUTDIR}               ${DEP_INCLUDE_DIR}/freealut-1.1.0)
    34 SET(ENV{BOOST_ROOT}            ${DEP_INCLUDE_DIR}/boost-1.39.0)
    35 SET(ENV{CEGUIDIR}              ${DEP_INCLUDE_DIR}/cegui-0.6.2)
    36 SET(ENV{DXSDK_DIR}             ${DEP_INCLUDE_DIR}/directx-2007.aug)
    37 SET(ENV{ENETDIR}               ${DEP_INCLUDE_DIR}/enet-1.2)
    38 SET(ENV{LUA_DIR}               ${DEP_INCLUDE_DIR}/lua-5.1.4)
    39 SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR}/libogg-1.1.3)
    40 SET(ENV{VORBISDIR}             ${DEP_INCLUDE_DIR}/libvorbis-1.2.0)
    41 SET(ENV{OGRE_HOME}             ${DEP_INCLUDE_DIR}/ogre-1.4.9)
     33SET(ENV{ALUTDIR}               ${DEP_INCLUDE_DIR}/freealut)
     34SET(ENV{BOOST_ROOT}            ${DEP_INCLUDE_DIR}/boost)
     35SET(ENV{CEGUIDIR}              ${DEP_INCLUDE_DIR}/cegui)
     36SET(ENV{DXSDK_DIR}             ${DEP_INCLUDE_DIR}/directx)
     37SET(ENV{ENETDIR}               ${DEP_INCLUDE_DIR}/enet)
     38SET(ENV{LUA_DIR}               ${DEP_INCLUDE_DIR}/lua)
     39SET(ENV{OGGDIR}                ${DEP_INCLUDE_DIR}/libogg)
     40SET(ENV{VORBISDIR}             ${DEP_INCLUDE_DIR}/libvorbis)
     41SET(ENV{OGRE_HOME}             ${DEP_INCLUDE_DIR}/ogre)
    4242SET(ENV{OGRE_PLUGIN_DIR}       ${DEP_BINARY_DIR})
    43 SET(ENV{OPENALDIR}             ${DEP_INCLUDE_DIR}/openal-1.1)
    44 LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/tcl-8.5.2/include)
    45 LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/zlib-1.2.3/include)
     43SET(ENV{OPENALDIR}             ${DEP_INCLUDE_DIR}/openal)
     44LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/tcl/include)
     45LIST(APPEND CMAKE_INCLUDE_PATH ${DEP_INCLUDE_DIR}/zlib/include)
    4646
    4747### INSTALL ###
     48
     49# Tcl script library
     50INSTALL(
     51  DIRECTORY ${DEP_LIBRARY_DIR}/tcl/
     52  DESTINATION lib/tcl
     53)
     54
    4855# On Windows, DLLs have to be in the executable folder, install them
    4956IF(WIN32 AND DEP_BINARY_DIR)
  • code/trunk/cmake/PackageConfigMSVC.cmake

    r3196 r3370  
    5858
    5959  # Visual Leak Detector
    60   SET(VLD_INCLUDE_DIR  ${DEP_INCLUDE_DIR}/vld-1.9h CACHE PATH "")
    61   SET(VLD_LIBRARY_DIR  ${DEP_LIBRARY_DIR}          CACHE PATH "")
     60  SET(VLD_INCLUDE_DIR  ${DEP_INCLUDE_DIR}/vld  CACHE PATH "")
     61  SET(VLD_LIBRARY_DIR  ${DEP_LIBRARY_DIR}       CACHE PATH "")
    6262  LINK_DIRECTORIES(${VLD_LIBRARY_DIR}) # Used for auto-linking
    6363  MARK_AS_ADVANCED(VLD_INCLUDE_DIR VLD_LIBRARY_DIR)
Note: See TracChangeset for help on using the changeset viewer.