INTERFACE_SOURCES¶
Added in version 3.1.
List of interface sources to compile into consuming targets.
Targets may populate this property to publish the sourcesfor consuming targets to compile. Thetarget_sources() commandpopulates this property with values given to thePUBLIC andINTERFACE keywords. Projects may also get and set the property directly.
When target dependencies are specified usingtarget_link_libraries(),CMake will read this property from all target dependencies to determine thesources of the consumer.
Contents ofINTERFACE_SOURCES may use "generator expressions"with the syntax$<...>. See thecmake-generator-expressions(7)manual for available expressions. See thecmake-buildsystem(7)manual for more on defining buildsystem properties.
