mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
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.
8 lines
283 B
CMake
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>")
|