
New in version 3.18: By default, source file properties are only visible to targets added in the same directory (CMakeLists.txt).

However when I generate the solution via CMake it seems to ignore this when I look at the compile options for that source file. Sets properties associated with source files using a key/value paired list. I am trying to add a bunch of compile flags to some of them using like - set_source_files_properties( AmbientPixel.hlsl PROPERTIES COMPILE_FLAGS "/E\"ps_main\" /ps\"_5_0\"" ) cmake - cmakesetsourcefilesproperties cmake CMakeLists.txt setsourcefilesproperties : setsourcefilesproperties (a.cpp PROPERTIES COMPILEDEFINITIONS DIR1 '/home/xxx/b. Popular Open Source Project with CMake Here is a.

CMAKE SET SOURCE FILE PORPERTIES CODE
I have a simple CMakeLists for my shader code which currently just looks like this - target_sources( JonsEngine CMake scripts also make source management easier because it simplifies build script into one file and more organized, readable format. Use setsourcefilesproperties() to set property values.
