Help: More syntax highlighting for literal blocks

Covers almost all blocks containing actual code, except:

* Parsed-literal blocks can't be highlighted, including many command
  summaries and substitution-heavy docs like find_... commands.
  This is a Sphinx limitation.

* Code with errors, like CMP0049, DEPLOYMENT_ADDITIONAL_FILES,
  DEPLOYMENT_REMOTE_DIRECTORY, @PACKAGE_INIT@ substitution in the
  tutorial, bracket arguments/comments in cmake-language.7 and
  cmake-developer.7.

* FindQt4 module, which needs reformatting.
This commit is contained in:
Nikita Nemkin
2025-01-29 20:05:12 +05:00
committed by Brad King
parent e806a490b6
commit 9890cfc4ec
79 changed files with 339 additions and 176 deletions

View File

@@ -47,7 +47,9 @@ The following variables influence the component-specific packaging:
list. The :command:`get_cmake_property` command can be used to obtain the
``COMPONENTS`` property, then the :command:`list(REMOVE_ITEM)` command can be
used to remove the unwanted ones. For example, to use all defined components
except ``foo`` and ``bar``::
except ``foo`` and ``bar``:
.. code-block:: cmake
get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS)
list(REMOVE_ITEM CPACK_COMPONENTS_ALL "foo" "bar")
@@ -113,7 +115,7 @@ Add component
Describe an installation component.
::
.. code-block:: cmake
cpack_add_component(compname
[DISPLAY_NAME name]
@@ -190,7 +192,7 @@ Add component group
Describes a group of related CPack installation components.
::
.. code-block:: cmake
cpack_add_component_group(groupname
[DISPLAY_NAME name]
@@ -242,7 +244,7 @@ Add installation type
Add a new installation type containing
a set of predefined component selections to the graphical installer.
::
.. code-block:: cmake
cpack_add_install_type(typename
[DISPLAY_NAME name])
@@ -269,7 +271,7 @@ Configure downloads
Configure CPack to download
selected components on-the-fly as part of the installation process.
::
.. code-block:: cmake
cpack_configure_downloads(site
[UPLOAD_DIRECTORY dirname]