W3cubDocs

/CMake 3.19

VS_SETTINGS

New in version 3.18.

Set any item metadata on a non-built file.

Takes a list of Key=Value pairs. Tells the Visual Studio generator to set Key to Value as item metadata on the file.

For example:

set_property(SOURCE file.hlsl PROPERTY VS_SETTINGS "Key=Value" "Key2=Value2")

will set Key to Value and Key2 to Value2 on the file.hlsl item as metadata.

Generator expressions are supported.

© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.19/prop_sf/VS_SETTINGS.html