diff options
author | Brad King <brad.king@kitware.com> | 2021-01-15 19:01:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-18 17:35:41 (GMT) |
commit | 7d498d6b436638f5d85a0e97d43d51603d79205c (patch) | |
tree | 5e6a7174c41689811bb2b0c41d85207daee48a57 /Tests/CMakeLib/testRST.expect | |
parent | cc1f53351c52d03aecc47f8074ab1290cf7fb1a5 (diff) | |
download | CMake-7d498d6b436638f5d85a0e97d43d51603d79205c.zip CMake-7d498d6b436638f5d85a0e97d43d51603d79205c.tar.gz CMake-7d498d6b436638f5d85a0e97d43d51603d79205c.tar.bz2 |
Utilities/Sphinx: Add role and directive for 'genex' in CMake domain
This enables cross-reference syntax for CMake generator expressions:
:genex:`SOME_GENEX`
:genex:`$<SOME_GENEX>`
:genex:`$<SOME_GENEX:...>`
and definition of CMake generator expressions via a directive:
.. genex:: SOME_GENEX
.. genex:: $<SOME_GENEX>
.. genex:: $<SOME_GENEX:...>
It also adds generator expressions defined by the directive and by
`Help/genex/SOME_GENEX.rst` documents to the index.
Diffstat (limited to 'Tests/CMakeLib/testRST.expect')
-rw-r--r-- | Tests/CMakeLib/testRST.expect | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testRST.expect b/Tests/CMakeLib/testRST.expect index 64f0896..4870f65 100644 --- a/Tests/CMakeLib/testRST.expect +++ b/Tests/CMakeLib/testRST.expect @@ -20,6 +20,12 @@ Environment variable ``SOME_ENV_VAR``. Environment variable ``some env var`` with space and target. Generator ``Some Generator`` with space. Generator ``Some Generator`` with space. +Generator expression ``SOME_GENEX``. +Generator expression ``$<SOME_GENEX>`` with brackets. +Generator expression ``$<SOME_GENEX:...>`` with brackets and parameter. +Generator expression ``some genex`` with space and target. +Generator expression ``$<SOME_GENEX>`` with brackets, space, and target. +Generator expression ``$<SOME_GENEX:...>`` with brackets, parameter, space, and target. Inline literal ``~!@#$%^&*( )_+-=\\[]{}'":;,<>.?/``. Inline link Link Text. Inline link Link Text <With \-escaped Brackets>. @@ -56,6 +62,14 @@ Bracket Comment Content Environment variable other_var description. +.. cmake:genex:: SOME_GENEX + + Generator expression SOME_GENEX description. + +.. genex:: $<OTHER_GENEX> + + Generator expression $<OTHER_GENEX> description. + .. cmake:variable:: some_var Variable some_var description. |