Files
CMake/Tests/RunCMake/VS10Project/VsSettings.cmake
Steven Boswell f21158cdfe VS: Honor VS_SETTINGS source file property on all sources
Extend the feature added by commit 2ce42f281f (VS: Add VS_SETTINGS
source file property, 2020-03-18, v3.18.0-rc1~449^2~3) to support
all source file types.
2021-09-09 14:19:28 -04:00

8 lines
283 B
CMake

enable_language(CXX)
add_library(foo foo.cpp shader.hlsl)
set_property(SOURCE shader.hlsl PROPERTY VS_SETTINGS
"$<$<CONFIG:DEBUG>:SourceProperty1=SourceProperty1Value>")
set_property(SOURCE foo.cpp PROPERTY VS_SETTINGS
"$<$<CONFIG:DEBUG>:SourceProperty2=SourceProperty2Value>")