diff options
author | Josef Angstenberger <code@jtxa.de> | 2021-06-10 22:20:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-17 15:57:56 (GMT) |
commit | 9e5bbb69eaa21830e1e306e0705ba32213def064 (patch) | |
tree | e2fda3a4dad99938d83f6a3d21039bca399d7e0b /Help/guide/tutorial/Packaging Debug and Release.rst | |
parent | fe60154fe8efc7528da92f6b9a6b17a6f9d4a179 (diff) | |
download | CMake-9e5bbb69eaa21830e1e306e0705ba32213def064.zip CMake-9e5bbb69eaa21830e1e306e0705ba32213def064.tar.gz CMake-9e5bbb69eaa21830e1e306e0705ba32213def064.tar.bz2 |
Tutorial: Add captions for code blocks
Diffstat (limited to 'Help/guide/tutorial/Packaging Debug and Release.rst')
-rw-r--r-- | Help/guide/tutorial/Packaging Debug and Release.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/guide/tutorial/Packaging Debug and Release.rst b/Help/guide/tutorial/Packaging Debug and Release.rst index 1f90268..c2bf1b5 100644 --- a/Help/guide/tutorial/Packaging Debug and Release.rst +++ b/Help/guide/tutorial/Packaging Debug and Release.rst @@ -17,6 +17,7 @@ Set :variable:`CMAKE_DEBUG_POSTFIX` near the beginning of the top-level ``CMakeLists.txt`` file: .. literalinclude:: Complete/CMakeLists.txt + :caption: CMakeLists.txt :language: cmake :start-after: project(Tutorial VERSION 1.0) :end-before: target_compile_features(tutorial_compiler_flags @@ -24,6 +25,7 @@ Set :variable:`CMAKE_DEBUG_POSTFIX` near the beginning of the top-level And the :prop_tgt:`DEBUG_POSTFIX` property on the tutorial executable: .. literalinclude:: Complete/CMakeLists.txt + :caption: CMakeLists.txt :language: cmake :start-after: # add the executable :end-before: # add the binary tree to the search path for include files @@ -33,6 +35,7 @@ Let's also add version numbering to the ``MathFunctions`` library. In :prop_tgt:`SOVERSION` properties: .. literalinclude:: Complete/MathFunctions/CMakeLists.txt + :caption: MathFunctions/CMakeLists.txt :language: cmake :start-after: # setup the version numbering :end-before: # install rules @@ -68,6 +71,7 @@ Next, use the ``CPACK_INSTALL_CMAKE_PROJECTS`` variable to specify which projects to install. In this case, we want to install both debug and release. .. literalinclude:: Complete/MultiCPackConfig.cmake + :caption: MultiCPackConfig.cmake :language: cmake From the ``Step12`` directory, run :manual:`cpack <cpack(1)>` specifying our |