Changeset 2685 for code/branches/buildsystem3/media
- Timestamp:
- Feb 20, 2009, 5:32:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/media/CMakeLists.txt
r2673 r2685 26 26 # Specify media directory 27 27 GET_FILENAME_COMPONENT(_search_path_1 ${CMAKE_SOURCE_DIR}/../media ABSOLUTE) 28 FIND_PATH(ORXONOX_MEDIA_D IRECTORYresources.cfg28 FIND_PATH(ORXONOX_MEDIA_DEV_PATH resources.cfg 29 29 PATHS 30 30 ${CMAKE_CURRENT_SOURCE_DIR} 31 31 ${_search_path_1} 32 $ENV{ORXONOX_MEDIA_DIR}33 32 ) 34 IF(NOT ORXONOX_MEDIA_D IRECTORY)33 IF(NOT ORXONOX_MEDIA_DEV_PATH) 35 34 MESSAGE(STATUS "Warning: Media directory not found. If you want to compile while downloading the media files, you must specify the directory by Hand BEFORE compiling! Default location is orxonox_root/media") 36 35 # Temporary override to the default location. 37 SET(ORXONOX_MEDIA_D IRECTORY${CMAKE_SOURCE_DIR}/media)38 SET(ORXONOX_MEDIA_D IRECTORY${CMAKE_SOURCE_DIR}/media PARENT_SCOPE)36 SET(ORXONOX_MEDIA_DEV_PATH ${CMAKE_SOURCE_DIR}/media) 37 SET(ORXONOX_MEDIA_DEV_PATH ${CMAKE_SOURCE_DIR}/media PARENT_SCOPE) 39 38 ENDIF() 40 39 … … 50 49 51 50 INSTALL( 52 DIRECTORY ${ORXONOX_MEDIA_D IRECTORY}/51 DIRECTORY ${ORXONOX_MEDIA_DEV_PATH}/ 53 52 DESTINATION ${ORXONOX_MEDIA_INSTALL_PATH} 54 53 REGEX "\\.svn$|_svn$|backToPNG|${TCL_EXCLUDE_PATTERN}" EXCLUDE
Note: See TracChangeset
for help on using the changeset viewer.