cmake Add Directories to Compiler Include Path


  • include_directories([AFTER|BEFORE] [SYSTEM] dir1 [dir2 ...])


dirNone ore more relative or absolute paths
AFTER, BEFORE(optional) whether to add the given directories to the front or end of the current list of include paths; default behaviour is defined by CMAKE_INCLUDE_DIRECTORIES_BEFORE
SYSTEM(optional) tells the compiler to tread the given directories as system include dirs, which might trigger special handling by the compiler