Changeset 2702 for code/branches/buildsystem3/media
- Timestamp:
- Feb 27, 2009, 2:13:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/media/CMakeLists.txt
r2685 r2702 24 24 # 25 25 26 # This directory has to concur with the name set in BuildConfig.cmake 27 IF(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}/${DEFAULT_MEDIA_PATH}") 28 MESSAGE(FATAL_ERROR "Value of DEFAULT_MEDIA_PATH does not concur with the name of the media directory in the source tree") 29 ENDIF() 30 26 31 # Specify media directory 27 32 GET_FILENAME_COMPONENT(_search_path_1 ${CMAKE_SOURCE_DIR}/../media ABSOLUTE) 28 FIND_PATH( ORXONOX_MEDIA_DEV_PATHresources.cfg33 FIND_PATH(CMAKE_MEDIA_OUTPUT_DIRECTORY resources.cfg 29 34 PATHS 30 35 ${CMAKE_CURRENT_SOURCE_DIR} 31 36 ${_search_path_1} 32 37 ) 33 IF(NOT ORXONOX_MEDIA_DEV_PATH)38 IF(NOT CMAKE_MEDIA_OUTPUT_DIRECTORY) 34 39 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") 35 40 # Temporary override to the default location. 36 SET( ORXONOX_MEDIA_DEV_PATH${CMAKE_SOURCE_DIR}/media)37 SET( ORXONOX_MEDIA_DEV_PATH${CMAKE_SOURCE_DIR}/media PARENT_SCOPE)41 SET(CMAKE_MEDIA_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/media) 42 SET(CMAKE_MEDIA_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/media PARENT_SCOPE) 38 43 ENDIF() 39 44 … … 49 54 50 55 INSTALL( 51 DIRECTORY ${ ORXONOX_MEDIA_DEV_PATH}/56 DIRECTORY ${CMAKE_MEDIA_OUTPUT_DIRECTORY}/ 52 57 DESTINATION ${ORXONOX_MEDIA_INSTALL_PATH} 53 58 REGEX "\\.svn$|_svn$|backToPNG|${TCL_EXCLUDE_PATTERN}" EXCLUDE
Note: See TracChangeset
for help on using the changeset viewer.