# # ORXONOX - the hottest 3D action shooter ever to exist # > www.orxonox.net < # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # # Author: # Reto Grieder # Description: # Finds the media directory and configures it's installation. # # Specify media directory FIND_PATH(ORXONOX_MEDIA_DIRECTORY resources.cfg PATHS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/../media $ENV{ORXONOX_MEDIA_DIR} ) IF(NOT ORXONOX_MEDIA_DIRECTORY) 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") # Temporary override to the default location. SET(ORXONOX_MEDIA_DIRECTORY ${CMAKE_SOURCE_DIR}/media) SET(ORXONOX_MEDIA_DIRECTORY ${CMAKE_SOURCE_DIR}/media PARENT_SCOPE) ENDIF() ################ Installation ################# # Try no to copy both tcl script file libraries IF(TCL_LIBRARY MATCHES "85|8\\.5") SET(TCL_EXCLUDE_PATTERN "tcl8\\.4") ELSEIF(TCL_LIBRARY MATCHES "84|8\\.4") SET(TCL_EXCLUDE_PATTERN "tcl8\\.5") ENDIF() INSTALL( DIRECTORY ${ORXONOX_MEDIA_DIRECTORY}/ DESTINATION ${ORXONOX_MEDIA_INSTALL_PATH} REGEX "\\.svn$|_svn$|backToPNG|${TCL_EXCLUDE_PATTERN}" EXCLUDE )