CMake:CPackConfiguration: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
The following variables can be set to adjust the behaviour of CPack:
The following variables can be set to adjust the behaviour of CPack:
==Basic settings==


{|
{|
Line 26: Line 28:
|-
|-
| CPACK_PACKAGE_VENDOR || Package vendor name || Kitware
| CPACK_PACKAGE_VENDOR || Package vendor name || Kitware
|-
| CPACK_PACKAGE_VERSION || Package full version || 2.5.0
|-
|-
| CPACK_PACKAGE_VERSION_MAJOR || Package Major Version || 2
| CPACK_PACKAGE_VERSION_MAJOR || Package Major Version || 2
Line 54: Line 54:
|-
|-
| CPACK_TOPLEVEL_TAG || Directory for the installed || Linux-i686
| CPACK_TOPLEVEL_TAG || Directory for the installed || Linux-i686
|}
==Advanced settings==
{|
|- bgcolor="#abcdef"
! Variable Name || ____________Description____________ || Example
|-
| CPACK_PACKAGE_VERSION || Package full version, used internally. || 2.5.0
|}
|}

Revision as of 13:49, 21 August 2007

The following variables can be set to adjust the behaviour of CPack:

Basic settings

Variable Name ____________Description____________ Example
CPACK_CMAKE_GENERATOR What CMake generator should be used if the project is CMake project Unix Makefiles
CPACK_GENERATOR CPack generator to be used STGZ;TGZ;TZ
CPACK_INSTALL_CMAKE_PROJECTS List of four values: Build directory, Project Name, Project Component, Directory in the package /home/andy/vtk/CMake-bin;CMake;ALL;/
CPACK_PACKAGE_DESCRIPTION_FILE File used as a description of a project /path/to/project/ReadMe.txt
CPACK_PACKAGE_DESCRIPTION_SUMMARY Description summary of a project CMake is a build tool
CPACK_PACKAGE_EXECUTABLES Pair of project executable and label ccmake;CMake
CPACK_PACKAGE_FILE_NAME Package file name without extension. Also a directory of installer cmake-2.5.0-Linux-i686
CPACK_PACKAGE_INSTALL_DIRECTORY Installation directory on the target system CMake 2.5
CPACK_PACKAGE_INSTALL_REGISTRY_KEY Registry key used when installing this project CMake 2.5.0
CPACK_PACKAGE_NAME Package name CMake
CPACK_PACKAGE_VENDOR Package vendor name Kitware
CPACK_PACKAGE_VERSION_MAJOR Package Major Version 2
CPACK_PACKAGE_VERSION_MINOR Package Minor Version 5
CPACK_PACKAGE_VERSION_PATCH Package Patch Version 0
CPACK_RESOURCE_FILE_LICENSE License file for the project /home/andy/vtk/CMake/Copyright.txt
CPACK_RESOURCE_FILE_README ReadMe file for the project /home/andy/vtk/CMake/Templates/CPack.GenericDescription.txt
CPACK_RESOURCE_FILE_WELCOME Welcome file for the project /home/andy/vtk/CMake/Templates/CPack.GenericWelcome.txt
CPACK_SOURCE_GENERATOR List of generators used for the source package TGZ;TZ
CPACK_SOURCE_IGNORE_FILES Pattern of files in the source tree that won't be packaged /CVS/;/\\.svn/;\\.swp$;\\.#;/#;.*~;cscope.*
CPACK_SOURCE_PACKAGE_FILE_NAME Name of the source package cmake-2.5.0
CPACK_SOURCE_STRIP_FILES List of files in the source tree that will be stripped. Starting with CMake 2.6.0 CPACK_SOURCE_STRIP_FILES will be a boolean variable which enables stripping of all files (a list of files evaluates to TRUE in CMake, so this change is compatible).
CPACK_STRIP_FILES List of files to be stripped. Starting with CMake 2.6.0 CPACK_STRIP_FILES will be a boolean variable which enables stripping of all files (a list of files evaluates to TRUE in CMake, so this change is compatible). bin/ccmake;bin/cmake;bin/cpack;bin/ctest
CPACK_SYSTEM_NAME System name Linux-i686
CPACK_TOPLEVEL_TAG Directory for the installed Linux-i686


Advanced settings

Variable Name ____________Description____________ Example
CPACK_PACKAGE_VERSION Package full version, used internally. 2.5.0