diff options
author | Brad King <brad.king@kitware.com> | 2021-11-08 17:40:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-11-08 17:40:46 (GMT) |
commit | 1fad6998091b65905bcf5bd8b7edd30b7b0b7362 (patch) | |
tree | 7a0d610139cc441f1ec2367474c6c35690b54bdf /Help/command/target_sources.rst | |
parent | befcd6ea1db0fee91835a1158960de582993e32d (diff) | |
parent | e0a66059d409e06cea67455b66e13913fc6cf272 (diff) | |
download | CMake-1fad6998091b65905bcf5bd8b7edd30b7b0b7362.zip CMake-1fad6998091b65905bcf5bd8b7edd30b7b0b7362.tar.gz CMake-1fad6998091b65905bcf5bd8b7edd30b7b0b7362.tar.bz2 |
Merge topic 'target-sources-file-set'
e0a66059d4 Help: Fix target_sources FILE_SET signature summary
79d379fba6 Help: Add versionadded markup to target_sources FILE_SET feature
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6703
Diffstat (limited to 'Help/command/target_sources.rst')
-rw-r--r-- | Help/command/target_sources.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Help/command/target_sources.rst b/Help/command/target_sources.rst index 2039da5..f4833e7 100644 --- a/Help/command/target_sources.rst +++ b/Help/command/target_sources.rst @@ -60,11 +60,16 @@ expressions to ensure the sources are correctly assigned to the target. See the :manual:`cmake-buildsystem(7)` manual for more on defining buildsystem properties. +File Sets +^^^^^^^^^ + +.. versionadded:: 3.23 + .. code-block:: cmake target_sources(<target> - <INTERFACE|PUBLIC|PRIVATE> [FILE_SET set1] [TYPE type1] [BASE_DIRS dirs1...] [FILES files1...] - [<INTERFACE|PUBLIC|PRIVATE> [FILE_SET set2] [TYPE type2] [BASE_DIRS dirs2...] [FILES files2...]) + <INTERFACE|PUBLIC|PRIVATE> FILE_SET set1 [TYPE type1] [BASE_DIRS dirs1...] [FILES files1...] + [<INTERFACE|PUBLIC|PRIVATE> FILE_SET set2 [TYPE type2] [BASE_DIRS dirs2...] [FILES files2...]) Adds a file set to a target, or adds files to an existing file set. Targets have zero or more named file sets. Each file set has a name, a type, a scope of |