Help: Provide cross-references from and to set_property

This commit is contained in:
Joachim Wuttke (o)
2019-01-10 14:01:58 +01:00
parent f2a78aeed9
commit bfc3670546
4 changed files with 18 additions and 6 deletions

View File

@@ -9,5 +9,7 @@ Set properties of the current directory and subdirectories.
Sets properties of the current directory and its subdirectories in key-value pairs. Sets properties of the current directory and its subdirectories in key-value pairs.
See also the :command:`set_property(DIRECTORY)` command.
See :ref:`Directory Properties` for the list of properties known to CMake See :ref:`Directory Properties` for the list of properties known to CMake
and their individual documentation for the behavior of each property. and their individual documentation for the behavior of each property.

View File

@@ -24,17 +24,19 @@ It must be one of the following:
Scope is unique and does not accept a name. Scope is unique and does not accept a name.
``DIRECTORY`` ``DIRECTORY``
Scope defaults to the current directory but another Scope defaults to the current directory but another directory
directory (already processed by CMake) may be named by full or (already processed by CMake) may be named by full or relative path.
relative path. See also the :command:`set_directory_properties` command.
``TARGET`` ``TARGET``
Scope may name zero or more existing targets. Scope may name zero or more existing targets.
See also the :command:`set_target_properties` command.
``SOURCE`` ``SOURCE``
Scope may name zero or more source files. Note that source Scope may name zero or more source files. Note that source
file properties are visible only to targets added in the same file properties are visible only to targets added in the same
directory (CMakeLists.txt). directory (CMakeLists.txt).
See also the :command:`set_source_files_properties` command.
``INSTALL`` ``INSTALL``
Scope may name zero or more installed file paths. Scope may name zero or more installed file paths.
@@ -54,6 +56,7 @@ It must be one of the following:
``TEST`` ``TEST``
Scope may name zero or more existing tests. Scope may name zero or more existing tests.
See also the :command:`set_tests_properties` command.
``CACHE`` ``CACHE``
Scope must name zero or more cache existing entries. Scope must name zero or more cache existing entries.

View File

@@ -10,6 +10,10 @@ Source files can have properties that affect how they are built.
[prop2 value2 [...]]) [prop2 value2 [...]])
Sets properties associated with source files using a key/value paired Sets properties associated with source files using a key/value paired
list. See :ref:`Source File Properties` for the list of properties known list.
See also the :command:`set_property(SOURCE)` command.
See :ref:`Source File Properties` for the list of properties known
to CMake. Source file properties are visible only to targets added to CMake. Source file properties are visible only to targets added
in the same directory (CMakeLists.txt). in the same directory (CMakeLists.txt).

View File

@@ -10,5 +10,8 @@ Set a property of the tests.
Sets a property for the tests. If the test is not found, CMake Sets a property for the tests. If the test is not found, CMake
will report an error. will report an error.
:manual:`Generator expressions <cmake-generator-expressions(7)>` will be :manual:`Generator expressions <cmake-generator-expressions(7)>` will be
expanded the same as supported by the test's :command:`add_test` call. See expanded the same as supported by the test's :command:`add_test` call.
:ref:`Test Properties` for the list of properties known to CMake.
See also the :command:`set_property(TEST)` command.
See :ref:`Test Properties` for the list of properties known to CMake.