INTERFACE_SOURCES.rst 824 B

123456789101112131415161718
  1. INTERFACE_SOURCES
  2. -----------------
  3. List of interface sources to compile into consuming targets.
  4. Targets may populate this property to publish the sources
  5. for consuming targets to compile. The :command:`target_sources` command
  6. populates this property with values given to the ``PUBLIC`` and
  7. ``INTERFACE`` keywords. Projects may also get and set the property directly.
  8. When target dependencies are specified using :command:`target_link_libraries`,
  9. CMake will read this property from all target dependencies to determine the
  10. sources of the consumer.
  11. Contents of ``INTERFACE_SOURCES`` may use "generator expressions"
  12. with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  13. manual for available expressions. See the :manual:`cmake-buildsystem(7)`
  14. manual for more on defining buildsystem properties.