INTERFACE_SOURCES.rst 823 B

12345678910111213141516171819
  1. INTERFACE_SOURCES
  2. -----------------
  3. List of interface sources to pass to the compiler.
  4. Targets may populate this property to publish the sources
  5. for consuming targets to compile. Consuming
  6. targets can add entries to their own :prop_tgt:`SOURCES` property
  7. such as ``$<TARGET_PROPERTY:foo,INTERFACE_SOURCES>`` to use the
  8. sources specified in the interface of ``foo``.
  9. Targets with ``INTERFACE_SOURCES`` may not be exported with the
  10. :command:`export` or :command:`install(EXPORT)` commands. This limitation may be
  11. lifted in a future version of CMake.
  12. Contents of ``INTERFACE_SOURCES`` may use "generator expressions"
  13. with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  14. manual for available expressions. See the :manual:`cmake-buildsystem(7)`
  15. manual for more on defining buildsystem properties.