2008-12-12 19:01:09 +08:00
|
|
|
# This file will be configured to contain variables for CPack. These variables
|
|
|
|
# should be set in the CMake list file of the project before CPack module is
|
|
|
|
# included. Example variables are:
|
|
|
|
# CPACK_GENERATOR - Generator used to create package
|
|
|
|
# CPACK_INSTALL_CMAKE_PROJECTS - For each project (path, name, component)
|
|
|
|
# CPACK_CMAKE_GENERATOR - CMake Generator used for the projects
|
|
|
|
# CPACK_INSTALL_COMMANDS - Extra commands to install components
|
|
|
|
# CPACK_INSTALL_DIRECTORIES - Extra directories to install
|
|
|
|
# CPACK_PACKAGE_DESCRIPTION_FILE - Description file for the package
|
|
|
|
# CPACK_PACKAGE_DESCRIPTION_SUMMARY - Summary of the package
|
|
|
|
# CPACK_PACKAGE_EXECUTABLES - List of pairs of executables and labels
|
|
|
|
# CPACK_PACKAGE_FILE_NAME - Name of the package generated
|
|
|
|
# CPACK_PACKAGE_ICON - Icon used for the package
|
|
|
|
# CPACK_PACKAGE_INSTALL_DIRECTORY - Name of directory for the installer
|
|
|
|
# CPACK_PACKAGE_NAME - Package project name
|
|
|
|
# CPACK_PACKAGE_VENDOR - Package project vendor
|
|
|
|
# CPACK_PACKAGE_VERSION - Package project version
|
|
|
|
# CPACK_PACKAGE_VERSION_MAJOR - Package project version (major)
|
|
|
|
# CPACK_PACKAGE_VERSION_MINOR - Package project version (minor)
|
|
|
|
# CPACK_PACKAGE_VERSION_PATCH - Package project version (patch)
|
|
|
|
|
|
|
|
# There are certain generator specific ones
|
|
|
|
|
|
|
|
# NSIS Generator:
|
|
|
|
# CPACK_PACKAGE_INSTALL_REGISTRY_KEY - Name of the registry key for the installer
|
|
|
|
# CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra commands used during uninstall
|
|
|
|
# CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra commands used during install
|
|
|
|
|
|
|
|
|
|
|
|
SET(CPACK_BINARY_BUNDLE "${CPACK_BINARY_BUNDLE}")
|
|
|
|
SET(CPACK_BINARY_CYGWIN "${CPACK_BINARY_CYGWIN}")
|
|
|
|
SET(CPACK_BINARY_DEB "${CPACK_BINARY_DEB}")
|
|
|
|
SET(CPACK_BINARY_NSIS "${CPACK_BINARY_NSIS}")
|
|
|
|
SET(CPACK_BINARY_OSXX11 "${CPACK_BINARY_OSXX11}")
|
|
|
|
SET(CPACK_BINARY_PACKAGEMAKER "${CPACK_BINARY_PACKAGEMAKER}")
|
|
|
|
SET(CPACK_BINARY_RPM "${CPACK_BINARY_RPM}")
|
|
|
|
SET(CPACK_BINARY_STGZ "${CPACK_BINARY_STGZ}")
|
|
|
|
SET(CPACK_BINARY_TBZ2 "${CPACK_BINARY_TBZ2}")
|
|
|
|
SET(CPACK_BINARY_TGZ "${CPACK_BINARY_TGZ}")
|
|
|
|
SET(CPACK_BINARY_TZ "${CPACK_BINARY_TZ}")
|
|
|
|
SET(CPACK_BINARY_ZIP "${CPACK_BINARY_ZIP}")
|
|
|
|
SET(CPACK_CMAKE_GENERATOR "${CMAKE_GENERATOR}")
|
|
|
|
SET(CPACK_COMPONENTS_ALL "${CPACK_COMPONENTS_ALL}")
|
|
|
|
SET(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE")
|
|
|
|
SET(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE")
|
|
|
|
SET(CPACK_GENERATOR "${CPACK_GENERATOR}")
|
|
|
|
SET(CPACK_INSTALL_CMAKE_PROJECTS "${OpenSceneGraph_BINARY_DIR};OpenSceneGraph;${OSG_CPACK_COMPONENT};/")
|
2011-03-11 18:18:43 +08:00
|
|
|
SET(CPACK_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
|
|
SET(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
2008-12-12 19:01:09 +08:00
|
|
|
SET(CPACK_MODULE_PATH "${OpenSceneGraph_SOURCE_DIR}/CMakeModules;")
|
|
|
|
SET(CPACK_NSIS_DISPLAY_NAME "${CMAKE_PROJECT_NAME} ${OPENSCENEGRAPH_VERSION}")
|
|
|
|
SET(CPACK_NSIS_INSTALLER_ICON_CODE "")
|
|
|
|
SET(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "")
|
|
|
|
SET(CPACK_OUTPUT_CONFIG_FILE "${PROJECT_BINARY_DIR}/CPackConfig-${OSG_CPACK_COMPONENT}.cmake")
|
|
|
|
SET(CPACK_PACKAGE_DEFAULT_LOCATION "/")
|
2017-03-20 23:31:09 +08:00
|
|
|
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${OpenSceneGraph_SOURCE_DIR}/README.md")
|
2008-12-12 19:01:09 +08:00
|
|
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The OpenSceneGraph is an open source high performance 3d graphics toolkit")
|
2010-12-14 18:42:08 +08:00
|
|
|
SET(CPACK_PACKAGE_FILE_NAME "${OSG_PACKAGE_FILE_NAME}")
|
2008-12-12 19:01:09 +08:00
|
|
|
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
|
|
|
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CMAKE_PROJECT_NAME}-${OPENSCENEGRAPH_VERSION}")
|
From Mattias Helsing, "'ve finally finished the rework of the packaging support. It is
streamlined for tgz and has most of the features that Robert, J-S and
Sukender requested in december. I have an idea of how to discover the
vc80 sp1 or not but haven't had time to implement. The script is
completely reworked and now doesn't include cmakes' bundled
CPack.cmake script at all. In summary:
* filenames are
<package>-<osgversion>-<platform>-<arch>[-compiler]-<configuration>.tar.gz,
ex. libopenscenegraph-2.7.9-Linux-i386-Release.tar.gz,
libopenthreads-dev-2.7.9-win32-x86-vc80sp1-Debug.tar.gz
* targets (projects in msvs) are generated for each specified
component, a target that packages everything that is installed
(openscenegraph-all) and there's a target for running all other
packaging targets (Package ALL on msvs, package_ALL in unix
makefiles).
* It is possible to set the compiler in ccmake (cmake-gui, whatever you use)
* the top folder in packages is the same for all packages (OpenSceneGraph-x.y)
* the packaging support is limited with cmake-2.6.0 and not as
dynamic. With cmake-2.6.1 and later building the gdal plugin (for
example) will create a package_libopenscenegraph-gdal target. With
cmake-2.6.0 only the ones that are always built (libopenscenegraph,
libopenscenegraph-dev, openscenegraph, libopenthreads,
libopenthreads-dev
* i found a better way to decide whether cpack is available to guard
the BUiLD_OSG_PACKAGES option"
2009-01-12 19:34:03 +08:00
|
|
|
SET(CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
|
2008-12-12 19:01:09 +08:00
|
|
|
SET(CPACK_PACKAGE_RELOCATABLE "true")
|
2009-01-22 02:34:10 +08:00
|
|
|
SET(CPACK_PACKAGE_VENDOR "The OpenSceneGraph developers and contributors lead by Robert Osfield")
|
2008-12-12 19:01:09 +08:00
|
|
|
SET(CPACK_PACKAGE_VERSION "${OPENSCENEGRAPH_VERSION}")
|
|
|
|
SET(CPACK_PACKAGE_VERSION_MAJOR "${OPENSCENEGRAPH_MAJOR_VERSION}")
|
|
|
|
SET(CPACK_PACKAGE_VERSION_MINOR "${OPENSCENEGRAPH_MINOR_VERSION}")
|
|
|
|
SET(CPACK_PACKAGE_VERSION_PATCH "${OPENSCENEGRAPH_PATCH_VERSION}")
|
|
|
|
SET(CPACK_RESOURCE_FILE_LICENSE "${OpenSceneGraph_SOURCE_DIR}/LICENSE.txt")
|
2017-03-20 23:31:09 +08:00
|
|
|
SET(CPACK_RESOURCE_FILE_README "${OpenSceneGraph_SOURCE_DIR}/README.md")
|
From Mattias Helsing, "'ve finally finished the rework of the packaging support. It is
streamlined for tgz and has most of the features that Robert, J-S and
Sukender requested in december. I have an idea of how to discover the
vc80 sp1 or not but haven't had time to implement. The script is
completely reworked and now doesn't include cmakes' bundled
CPack.cmake script at all. In summary:
* filenames are
<package>-<osgversion>-<platform>-<arch>[-compiler]-<configuration>.tar.gz,
ex. libopenscenegraph-2.7.9-Linux-i386-Release.tar.gz,
libopenthreads-dev-2.7.9-win32-x86-vc80sp1-Debug.tar.gz
* targets (projects in msvs) are generated for each specified
component, a target that packages everything that is installed
(openscenegraph-all) and there's a target for running all other
packaging targets (Package ALL on msvs, package_ALL in unix
makefiles).
* It is possible to set the compiler in ccmake (cmake-gui, whatever you use)
* the top folder in packages is the same for all packages (OpenSceneGraph-x.y)
* the packaging support is limited with cmake-2.6.0 and not as
dynamic. With cmake-2.6.1 and later building the gdal plugin (for
example) will create a package_libopenscenegraph-gdal target. With
cmake-2.6.0 only the ones that are always built (libopenscenegraph,
libopenscenegraph-dev, openscenegraph, libopenthreads,
libopenthreads-dev
* i found a better way to decide whether cpack is available to guard
the BUiLD_OSG_PACKAGES option"
2009-01-12 19:34:03 +08:00
|
|
|
SET(CPACK_RESOURCE_FILE_WELCOME "${OpenSceneGraph_SOURCE_DIR}/NEWS.txt")
|
2008-12-12 19:01:09 +08:00
|
|
|
SET(CPACK_STRIP_FILES "ON")
|
2017-03-20 23:31:09 +08:00
|
|
|
|
|
|
|
# DEBIAN OPTIONS
|
|
|
|
IF(${CPACK_GENERATOR} STREQUAL "DEB")
|
|
|
|
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${OPENSCENEGRAPH_PACKAGE_MAINTAINER}")
|
|
|
|
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://www.openscenegraph.org")
|
|
|
|
SET(CPACK_DEBIAN_PACKAGE_SECTION "Development")
|
|
|
|
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "${OSG_PACKAGE_DEPENDS}")
|
|
|
|
SET(CPACK_DEBIAN_PACKAGE_CONFLICTS "${OSG_PACKAGE_CONFLICTS}")
|
|
|
|
SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${OpenSceneGraph_SOURCE_DIR}/debian_scripts/postinst;")
|
|
|
|
ENDIF()
|