... | ... | @@ -2,7 +2,7 @@ |
|
|
|
|
|
*CPack* is a powerful, easy to use, cross-platform software packaging
|
|
|
tool distributed with [CMake](http://www.cmake.org) since version 2.4.2.
|
|
|
It uses the [generators](CMake%3ACPackPackageGenerators "wikilink")
|
|
|
It uses the [generators](doc/cpack/PackageGenerators "wikilink")
|
|
|
concept from CMake, to abstract package generation on specific
|
|
|
platforms, and it can be used with or without CMake.
|
|
|
|
... | ... | @@ -61,7 +61,7 @@ the following command (BTW, failure to do so will result in an annoying |
|
|
This generates a new target called *"package"* in your build system.
|
|
|
When this target is built, CPack will be invoked to generate all of the
|
|
|
packages. Internally, CPack will use [CMake's install
|
|
|
mechanism](CMake%3AInstall_Commands "wikilink") to automatically populate
|
|
|
mechanism](doc/cmake/Install-Commands "wikilink") to automatically populate
|
|
|
the package.
|
|
|
|
|
|
An example output of the *"package"* target (from a Linux Makefile) is:
|
... | ... | @@ -95,7 +95,7 @@ An example output of the *"package"* target (from a Linux Makefile) is: |
|
|
## Using CMake variables to configure CPack
|
|
|
|
|
|
To configure CPack, it is possible to define [CPack
|
|
|
variables](CMake%3ACPackConfiguration "wikilink") inside a CMake file.
|
|
|
variables](doc/cpack/Configuration "wikilink") inside a CMake file.
|
|
|
These variables will be copied across to the generated CPackConfig.cmake
|
|
|
file before CPack is invoked.
|
|
|
|
... | ... | @@ -131,12 +131,12 @@ This is an example CMake list section for CPack configuration: |
|
|
|
|
|
## CPack Generators
|
|
|
|
|
|
There are several [generators](CMake%3ACPackPackageGenerators "wikilink")
|
|
|
There are several [generators](doc/cpack/PackageGenerators "wikilink")
|
|
|
usable with CPack.
|
|
|
|
|
|
# Example
|
|
|
|
|
|
Here is an [example](CMake/CPack/Examples/Linux/DEB "wikilink").
|
|
|
Here is an [example](doc/cpack/examples/linux/DEB "wikilink").
|
|
|
|
|
|
# Debugging
|
|
|
|
... | ... | |