INCLUDE_DIRECTORIES.rst 1.2 KB

1234567891011121314151617181920212223242526
  1. INCLUDE_DIRECTORIES
  2. -------------------
  3. List of preprocessor include file search directories.
  4. This property specifies the list of directories given so far to the
  5. :command:`include_directories` command.
  6. This property is used to populate the :prop_tgt:`INCLUDE_DIRECTORIES`
  7. target property, which is used by the generators to set the include
  8. directories for the compiler.
  9. In addition to accepting values from that command, values may be set
  10. directly on any directory using the :command:`set_property` command. A
  11. directory gets its initial value from its parent directory if it has one.
  12. The initial value of the :prop_tgt:`INCLUDE_DIRECTORIES` target property
  13. comes from the value of this property. Both directory and target property
  14. values are adjusted by calls to the :command:`include_directories` command.
  15. The target property values are used by the generators to set the
  16. include paths for the compiler.
  17. Contents of ``INCLUDE_DIRECTORIES`` may use "generator expressions" with
  18. the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)`
  19. manual for available expressions. See the :manual:`cmake-buildsystem(7)`
  20. manual for more on defining buildsystem properties.