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