Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2009, 4:47:13 PM (16 years ago)
Author:
rgrieder
Message:
  • Added install paths for bin, lib, archive, media, doc, config and log (config and log yet unused).
  • Install target for doxygen apidoc
  • Configured CMake to adjust the RPath in the installed executable. This should make the game find usr/lib/orxonox/lib…so when installed.
Location:
code/branches/buildsystem2/cmake
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/BuildConfig.cmake

    r2650 r2657  
    110110
    111111
     112############ Installation Settings ##############
     113
     114IF(UNIX)
     115  SET(ORXONOX_RUNTIME_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/bin/orxonox)
     116  SET(ORXONOX_LIBRARY_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/orxonox)
     117  SET(ORXONOX_ARCHIVE_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/orxonox/static)
     118  SET(ORXONOX_MEDIA_INSTALL_PATH   ${CMAKE_INSTALL_PREFIX}/share/orxonox)
     119  SET(ORXONOX_DOC_INSTALL_PATH     ${CMAKE_INSTALL_PREFIX}/share/doc/orxonox)
     120  # Not yet used
     121  SET(ORXONOX_LOG_INSTALL_PATH     ~/.orxonox/log)
     122  SET(ORXONOX_CONFIG_INSTALL_PATH  ~/.orxonox/config)
     123ELSEIF(WIN32)
     124  SET(ORXONOX_RUNTIME_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/bin)
     125  SET(ORXONOX_LIBRARY_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib)
     126  SET(ORXONOX_ARCHIVE_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/static)
     127  SET(ORXONOX_MEDIA_INSTALL_PATH   ${CMAKE_INSTALL_PREFIX}/media)
     128  SET(ORXONOX_DOC_INSTALL_PATH     ${CMAKE_INSTALL_PREFIX}/doc)
     129  # Not yet used
     130  SET(ORXONOX_LOG_INSTALL_PATH     ${CMAKE_INSTALL_PREFIX}/log)
     131  SET(ORXONOX_CONFIG_INSTALL_PATH  ${CMAKE_INSTALL_PREFIX}/config)
     132ENDIF()
     133
     134
     135################# Unix RPath ####################
     136
     137# use, i.e. don't skip the full RPATH for the build tree
     138SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
     139
     140# when building, don't use the install RPATH already
     141# (but later on when installing)
     142SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
     143
     144# the RPATH to be used when installing
     145SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
     146
     147# add the automatically determined parts of the RPATH
     148# which point to directories outside the build tree to the install RPATH
     149SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
     150
     151
    112152####### Static/Dynamic linking defines ##########
    113153
  • code/branches/buildsystem2/cmake/InstallUtilities.cmake

    r2651 r2657  
    2828FUNCTION(ORXONOX_INSTALL)
    2929  INSTALL(TARGETS ${ARGN}
    30     RUNTIME DESTINATION bin
    31     LIBRARY DESTINATION lib
    32     #ARCHIVE DESTINATION lib
     30    RUNTIME DESTINATION ${ORXONOX_RUNTIME_INSTALL_PATH}
     31    LIBRARY DESTINATION ${ORXONOX_LIBRARY_INSTALL_PATH}
     32    #ARCHIVE DESTINATION ${ORXONOX_ARCHIVE_INSTALL_PATH}
    3333  )
    3434ENDFUNCTION(ORXONOX_INSTALL)
Note: See TracChangeset for help on using the changeset viewer.