Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mac_osx/cmake/BundleConfig.cmake @ 8356

Last change on this file since 8356 was 8083, checked in by youngk, 14 years ago

Cocoa Integration of Orxonox and CPack testing. @Reto: Do NOT merge with kicklib, please.

File size: 2.8 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#    Kevin Young
22#  Description:
23#    Sets all necessary variables for CPack package generation
24#
25
26# Common properties across all generators
27
28#SET(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE)
29SET(CPACK_INSTALL_CMAKE_PROJECTS ${CMAKE_BINARY_DIR};${PROJECT_NAME};ALL;/)
30SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
31SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_NAME}")
32SET(CPACK_PACKAGE_EXECUTABLES ${ORXONOX_EXECUTABLE_NAME};${PROJECT_NAME})
33SET(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}")
34SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${PROJECT_NAME} ${ORXONOX_VERSION_NAME}")
35SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${PROJECT_NAME} ${ORXONOX_VERSION}")
36# Defaults to PROJECT_NAME anyway
37#SET(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
38SET(CPACK_PACKAGE_VENDOR "www.orxonox.net")
39SET(CPACK_PACKAGE_VERSION_MAJOR ${ORXONOX_VERSION_MAJOR})
40SET(CPACK_PACKAGE_VERSION_MINOR ${ORXONOX_VERSION_MINOR})
41SET(CPACK_PACKAGE_VERSION_PATCH ${ORXONOX_VERSION_PATCH})
42#SET(CPACK_PROJECT_CONFIG_FILE ${CMAKE_BINARY_DIR}/CPackOptions.cmake)
43SET(CPACK_SOURCE_GENERATOR TGZ;ZIP)
44# Unsure what pattern to set here
45#SET(CPACK_SOURCE_IGNORE_FILES /CVS/;/\\.svn/;\\.swp$;\\.#;/#;.*~;cscope.*)
46SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${ORXONOX_VERSION}")
47#SET(CPACK_SOURCE_STRIP_FILES FALSE)
48# Defaults to CMAKE_SYSTEM_NAME anyway
49#SET(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
50
51# Advanced settings
52SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENCE")
53 
54# Apple specific settings
55IF(APPLE)
56  SET(CPACK_GENERATOR "Bundle")
57
58  SET(CPACK_BUNDLE_NAME "${CPACK_PACKAGE_FILE_NAME}")
59  SET(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/${DEFAULT_DATA_PATH}/mac/Icon.icns")
60  SET(CPACK_BUNDLE_PLIST "${CMAKE_SOURCE_DIR}/${DEFAULT_DATA_PATH}/mac/Orxonox-Info.plist")
61  SET(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_SOURCE_DIR}/${DEFAULT_RUNTIME_PATH}/mac/OrxonoxMac")
62ENDIF(APPLE)
63
64# Fire up CPack
65INCLUDE(CPack)
Note: See TracBrowser for help on using the repository browser.