diff options
author | betsy.mcphail <betsy.mcphail@kitware.com> | 2024-05-09 18:03:06 (GMT) |
---|---|---|
committer | betsy.mcphail <betsy.mcphail@kitware.com> | 2024-05-09 18:03:06 (GMT) |
commit | baf6a37ffad794965de7cbaac3ca3330d318bdb1 (patch) | |
tree | 1baaf3758b15bbb8de632f7b40a9c74902227dc7 | |
parent | 760ad9bcc7a3262c6e3365453a79bcde43c1705e (diff) | |
download | CMake-baf6a37ffad794965de7cbaac3ca3330d318bdb1.zip CMake-baf6a37ffad794965de7cbaac3ca3330d318bdb1.tar.gz CMake-baf6a37ffad794965de7cbaac3ca3330d318bdb1.tar.bz2 |
Tutorial: Set CPACK_GENERATOR in Step 9
In addition to CPACK_SOURCE_GENERATOR also set CPACK_GENERATOR.
-rw-r--r-- | Help/guide/tutorial/Complete/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Help/guide/tutorial/Packaging an Installer.rst | 10 | ||||
-rw-r--r-- | Help/guide/tutorial/Step10/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Help/guide/tutorial/Step11/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Help/guide/tutorial/Step12/CMakeLists.txt | 2 |
5 files changed, 11 insertions, 4 deletions
diff --git a/Help/guide/tutorial/Complete/CMakeLists.txt b/Help/guide/tutorial/Complete/CMakeLists.txt index 3cdaaae..548a82d 100644 --- a/Help/guide/tutorial/Complete/CMakeLists.txt +++ b/Help/guide/tutorial/Complete/CMakeLists.txt @@ -89,6 +89,7 @@ include(InstallRequiredSystemLibraries) set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/License.txt") set(CPACK_PACKAGE_VERSION_MAJOR "${Tutorial_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${Tutorial_VERSION_MINOR}") +set(CPACK_GENERATOR "TGZ") set(CPACK_SOURCE_GENERATOR "TGZ") include(CPack) diff --git a/Help/guide/tutorial/Packaging an Installer.rst b/Help/guide/tutorial/Packaging an Installer.rst index 11a1952..4cca679 100644 --- a/Help/guide/tutorial/Packaging an Installer.rst +++ b/Help/guide/tutorial/Packaging an Installer.rst @@ -23,8 +23,9 @@ libraries that are needed by the project for the current platform. Next we set some CPack variables to where we have stored the license and version information for this project. The version information was set earlier in this tutorial and the ``License.txt`` has been included in the top-level source -directory for this step. The :variable:`CPACK_SOURCE_GENERATOR` variable -selects a file format for the source package. +directory for this step. The :variable:`CPACK_GENERATOR` and +:variable:`CPACK_SOURCE_GENERATOR` variables select the generators used for +binary and source installations, respectively. Finally we include the :module:`CPack module <CPack>` which will use these variables and some other properties of the current system to setup an @@ -38,8 +39,9 @@ binary directory run: cpack -To specify the generator, use the :option:`-G <cpack -G>` option. For multi-config builds, -use :option:`-C <cpack -C>` to specify the configuration. For example: +To specify the binary generator, use the :option:`-G <cpack -G>` option. For +multi-config builds, use :option:`-C <cpack -C>` to specify the configuration. +For example: .. code-block:: console diff --git a/Help/guide/tutorial/Step10/CMakeLists.txt b/Help/guide/tutorial/Step10/CMakeLists.txt index 2dd6db5..40fee8d 100644 --- a/Help/guide/tutorial/Step10/CMakeLists.txt +++ b/Help/guide/tutorial/Step10/CMakeLists.txt @@ -72,5 +72,6 @@ include(InstallRequiredSystemLibraries) set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/License.txt") set(CPACK_PACKAGE_VERSION_MAJOR "${Tutorial_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${Tutorial_VERSION_MINOR}") +set(CPACK_GENERATOR "TGZ") set(CPACK_SOURCE_GENERATOR "TGZ") include(CPack) diff --git a/Help/guide/tutorial/Step11/CMakeLists.txt b/Help/guide/tutorial/Step11/CMakeLists.txt index 046bfc9..9214c88 100644 --- a/Help/guide/tutorial/Step11/CMakeLists.txt +++ b/Help/guide/tutorial/Step11/CMakeLists.txt @@ -80,5 +80,6 @@ include(InstallRequiredSystemLibraries) set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/License.txt") set(CPACK_PACKAGE_VERSION_MAJOR "${Tutorial_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${Tutorial_VERSION_MINOR}") +set(CPACK_GENERATOR "TGZ") set(CPACK_SOURCE_GENERATOR "TGZ") include(CPack) diff --git a/Help/guide/tutorial/Step12/CMakeLists.txt b/Help/guide/tutorial/Step12/CMakeLists.txt index 1ba4e31..a84590f 100644 --- a/Help/guide/tutorial/Step12/CMakeLists.txt +++ b/Help/guide/tutorial/Step12/CMakeLists.txt @@ -85,6 +85,8 @@ include(InstallRequiredSystemLibraries) set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/License.txt") set(CPACK_PACKAGE_VERSION_MAJOR "${Tutorial_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${Tutorial_VERSION_MINOR}") +set(CPACK_GENERATOR "TGZ") +set(CPACK_SOURCE_GENERATOR "TGZ") include(CPack) # install the configuration targets |