INCLUDE_DIRECTORIES.rst 1.2 KB

12345678910111213141516171819202122232425
  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. include_directories command. This property exists on directories and
  6. targets. In addition to accepting values from the :command:`include_directories`
  7. command, values may be set directly on any directory or any target
  8. using the :command:`set_property` command. A target gets its initial value for
  9. this property from the value of the directory property. A directory
  10. gets its initial value from its parent directory if it has one. Both
  11. directory and target property values are adjusted by calls to the
  12. :command:`include_directories` command.
  13. The target property values are used by the generators to set the
  14. include paths for the compiler. See also the :command:`include_directories`
  15. and :command:`target_include_directories` commands.
  16. Relative paths should not be added to this property directly. Use one of
  17. the commands above instead to handle relative paths.
  18. Contents of INCLUDE_DIRECTORIES may use "generator expressions" with the
  19. syntax "$<...>". See the :manual:`cmake-generator-expressions(7)` manual for
  20. available expressions.