diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-27 15:58:20 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-27 15:58:20 (GMT) |
commit | ee227d3af5c0d5abcb8816e34809df60b9665ec1 (patch) | |
tree | 2575658691b780ee4f6a4e0d8d059639e6925b54 /Templates | |
parent | ac99baa44d985ddbf6f767090c49583bdd8f1aa4 (diff) | |
download | CMake-ee227d3af5c0d5abcb8816e34809df60b9665ec1.zip CMake-ee227d3af5c0d5abcb8816e34809df60b9665ec1.tar.gz CMake-ee227d3af5c0d5abcb8816e34809df60b9665ec1.tar.bz2 |
ENH: Several packaging issues. Allow random variables to be passed to cpack (anything starting with CPACK_, add preinstall to the list of dependencies for package, fix typos
Diffstat (limited to 'Templates')
-rw-r--r-- | Templates/CPackConfig.cmake.in | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/Templates/CPackConfig.cmake.in b/Templates/CPackConfig.cmake.in index be52b74..0f4ecd0 100644 --- a/Templates/CPackConfig.cmake.in +++ b/Templates/CPackConfig.cmake.in @@ -1,22 +1,26 @@ -SET(CPACK_GENERATOR "@CPACK_GENERATOR@") +# 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_BINARY_DIR - Path to the build tree +# CPACK_GENERATOR - Generator used to create package +# 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) -SET(CPACK_PACKAGE_NAME "@CPACK_PACKAGE_NAME@") -SET(CPACK_PACKAGE_INSTALL_DIRECTORY "@CPACK_PACKAGE_INSTALL_DIRECTORY@") -SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@") -SET(CPACK_PACKAGE_VERSION_MAJOR "@CPACK_PACKAGE_VERSION_MAJOR@") -SET(CPACK_PACKAGE_VERSION_MINOR "@CPACK_PACKAGE_VERSION_MINOR@") -SET(CPACK_PACKAGE_VERSION_PATCH "@CPACK_PACKAGE_VERSION_PATCH@") +# There are certain generator specific ones -SET(CPACK_PACKAGE_VENDOR "@CPACK_PACKAGE_VENDOR@") +# 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_PACKAGE_FILE_NAME "@CPACK_PACKAGE_FILE_NAME@") - -SET(CPACK_PACKAGE_EXECUTABLES "@CPACK_PACKAGE_EXECUTABLES@") - -SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "@CPACK_PACKAGE_DESCRIPTION_SUMMARY@") -SET(CPACK_PACKAGE_DESCRIPTION_FILE "@CPACK_PACKAGE_DESCRIPTION_FILE@") - -# It is a CMake project, so we need a binary directory -SET(CPACK_BINARY_DIR "@CPACK_BINARY_DIR@") - -SET(CPACK_PACKAGE_ICON "@CPACK_PACKAGE_ICON@") +@_CPACK_OTHER_VARIABLES_@ |