Changeset 8317 for code/branches/kicklib2/cmake
- Timestamp:
- Apr 24, 2011, 5:46:26 AM (14 years ago)
- Location:
- code/branches/kicklib2/cmake
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2/cmake/InstallConfig.cmake
r7163 r8317 39 39 ENDIF() 40 40 41 # Default installation paths42 SET(RUNTIME_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_RUNTIME_PATH})43 SET(LIBRARY_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_LIBRARY_PATH})44 SET(ARCHIVE_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_ARCHIVE_PATH})45 SET(MODULE_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_MODULE_PATH})46 SET(DOC_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_DOC_PATH})47 SET(DATA_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_DATA_PATH})48 SET(CONFIG_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_CONFIG_PATH})49 SET(LOG_INSTALL_DIRECTORY ${ CMAKE_INSTALL_PREFIX}/${DEFAULT_LOG_PATH})41 # Default relative installation paths 42 SET(RUNTIME_INSTALL_DIRECTORY ${DEFAULT_RUNTIME_PATH}) 43 SET(LIBRARY_INSTALL_DIRECTORY ${DEFAULT_LIBRARY_PATH}) 44 SET(ARCHIVE_INSTALL_DIRECTORY ${DEFAULT_ARCHIVE_PATH}) 45 SET(MODULE_INSTALL_DIRECTORY ${DEFAULT_MODULE_PATH}) 46 SET(DOC_INSTALL_DIRECTORY ${DEFAULT_DOC_PATH}) 47 SET(DATA_INSTALL_DIRECTORY ${DEFAULT_DATA_PATH}) 48 SET(CONFIG_INSTALL_DIRECTORY ${DEFAULT_CONFIG_PATH}) 49 SET(LOG_INSTALL_DIRECTORY ${DEFAULT_LOG_PATH}) 50 50 51 51 IF(NOT INSTALL_COPYABLE) 52 IF( UNIX) # Apple too?52 IF(LINUX) 53 53 # Using absolute paths 54 SET(RUNTIME_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/games) 55 SET(LIBRARY_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib/games/orxonox) 56 SET(ARCHIVE_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib/games/orxonox/static) 57 SET(MODULE_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib/games/orxonox/modules) 58 SET(DOC_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/doc/orxonox) 59 SET(DATA_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/games/orxonox) 54 SET(RUNTIME_INSTALL_DIRECTORY games) 55 SET(LIBRARY_INSTALL_DIRECTORY lib/games/orxonox) 56 SET(ARCHIVE_INSTALL_DIRECTORY lib/games/orxonox/static) 57 SET(MODULE_INSTALL_DIRECTORY lib/games/orxonox/modules) 58 SET(DOC_INSTALL_DIRECTORY share/doc/orxonox) 59 SET(DATA_INSTALL_DIRECTORY share/games/orxonox) 60 ELSEIF(WIN32) 61 # Leave on default (installs to only one location anyway) 62 ELSEIF(APPLE) 63 # TODO: Figure out what's the best way to install the application 60 64 ENDIF() 61 65 … … 75 79 SET(CMAKE_INSTALL_RPATH ${DEFAULT_LIBRARY_PATH}) 76 80 ELSE() 77 SET(CMAKE_INSTALL_RPATH ${ LIBRARY_INSTALL_DIRECTORY})81 SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${LIBRARY_INSTALL_DIRECTORY}) 78 82 ENDIF() 79 83 -
code/branches/kicklib2/cmake/tools/TargetUtilities.cmake
r8292 r8317 289 289 # RPATH settings for the installation 290 290 IF(UNIX) 291 SET(_rpath ${ LIBRARY_INSTALL_DIRECTORY})291 SET(_rpath ${CMAKE_INSTALL_PREFIX}/${LIBRARY_INSTALL_DIRECTORY}) 292 292 IF(_arg_MODULE) 293 LIST(APPEND _rpath ${ MODULE_INSTALL_DIRECTORY})293 LIST(APPEND _rpath ${CMAKE_INSTALL_PREFIX}/${MODULE_INSTALL_DIRECTORY}) 294 294 ENDIF() 295 295 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES INSTALL_RPATH "${_rpath}")
Note: See TracChangeset
for help on using the changeset viewer.