diff options
author | Brad King <brad.king@kitware.com> | 2022-11-09 14:34:25 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-11-09 14:34:40 (GMT) |
commit | 16cb04dbe9448554c97f407af38c1df1a2f3f953 (patch) | |
tree | 62efb9ef5a06d9654d07c05e44ea085955ba49a7 /Help/manual | |
parent | f852f7605557ddfa01ac755d4705cc81ecb647c2 (diff) | |
parent | b3e9fb67bba54fec31590600bc54ef75e03f6035 (diff) | |
download | CMake-16cb04dbe9448554c97f407af38c1df1a2f3f953.zip CMake-16cb04dbe9448554c97f407af38c1df1a2f3f953.tar.gz CMake-16cb04dbe9448554c97f407af38c1df1a2f3f953.tar.bz2 |
Merge topic 'file-set-file-api'
b3e9fb67bb file-api: support exporting file set information
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7867
Diffstat (limited to 'Help/manual')
-rw-r--r-- | Help/manual/cmake-file-api.7.rst | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/Help/manual/cmake-file-api.7.rst b/Help/manual/cmake-file-api.7.rst index 4b8ac65..65defb6 100644 --- a/Help/manual/cmake-file-api.7.rst +++ b/Help/manual/cmake-file-api.7.rst @@ -425,7 +425,7 @@ Version 1 does not exist to avoid confusion with that from { "kind": "codemodel", - "version": { "major": 2, "minor": 4 }, + "version": { "major": 2, "minor": 5 }, "paths": { "source": "/path/to/top-level-source-dir", "build": "/path/to/top-level-build-dir" @@ -1071,6 +1071,27 @@ with members: available. The value is an unsigned integer 0-based index into the ``backtraceGraph`` member's ``nodes`` array. +``fileSets`` + A JSON array of entries corresponding to the target's file sets. Each entry + is a JSON object with members: + + ``name`` + A string specifying the name of the file set. + + ``type`` + A string specifying the type of the file set. See + :command:`target_sources` supported file set types. + + ``visibility`` + A string specifying the visibility of the file set; one of ``PUBLIC``, + ``PRIVATE``, or ``INTERFACE``. + + ``baseDirectories`` + A JSON array of strings specifying the base directories containing sources + in the file set. + + This field was added in codemodel version 2.5. + ``sources`` A JSON array of entries corresponding to the target's source files. Each entry is a JSON object with members: @@ -1096,6 +1117,13 @@ with members: Optional member that is present with boolean value ``true`` if the source is :prop_sf:`GENERATED`. + ``fileSetIndex`` + Optional member that is present when the source is part of a file set. + The value is an unsigned integer 0-based index into the ``fileSets`` + array. + + This field was added in codemodel version 2.5. + ``backtrace`` Optional member that is present when a CMake language backtrace to the :command:`target_sources`, :command:`add_executable`, |