Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/media/CMakeLists.txt @ 2645

Last change on this file since 2645 was 2644, checked in by rgrieder, 16 years ago
  • Installation instructions for the config files (tcl scripts and ini files). This is temporary until we have config directory.
  • On windows, all DLLs from a precompiled package get installed too
  • added media folder with a CMakeLists.txt
  • media files get installed to media/ (Windows) or to /share/orxonox (Unix)
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19 #
20 #  Author:
21 #    Reto Grieder
22 #  Description:
23 #    Finds the media directory and configures it's installation.
24 #
25
26# Specify media directory
27FIND_PATH(ORXONOX_MEDIA_DIRECTORY resources.cfg
28  PATHS . ../../media $ENV{ORXONOX_MEDIA_DIR}
29)
30IF(NOT ORXONOX_MEDIA_DIRECTORY)
31  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")
32  # Temporary override to the default location.
33  SET(ORXONOX_MEDIA_DIRECTORY ${CMAKE_SOURCE_DIR}/media)
34ENDIF()
35
36
37################ Installation #################
38
39IF(UNIX)
40  SET(MEDIA_INSTALL_SUFFIX "share/orxonox")
41ELSEIF(WIN32)
42  SET(MEDIA_INSTALL_SUFFIX "media")
43ELSE()
44  MESSAGE(FATAL_ERROR "Install location for media files not yet specified for this platform. Please Adjust root/media/CMakeLists.txt")
45ENDIF()
46
47INSTALL(DIRECTORY ${ORXONOX_MEDIA_DIRECTORY}/ DESTINATION
48        ${MEDIA_INSTALL_SUFFIX} REGEX "\\.svn$|_svn$" EXCLUDE)
Note: See TracBrowser for help on using the repository browser.