diff options
author | Kitware Robot <kwrobot@kitware.com> | 2013-10-15 15:17:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-15 18:12:03 (GMT) |
commit | f051814ed0e63badbfd68049354f36259dbf4b49 (patch) | |
tree | f4e6f885f86c882d723a7dd53d2b702d0c7fdffb /Help/command/include_directories.rst | |
parent | e94958e99c4dec26c86ce8b76d744c04ba960675 (diff) | |
download | CMake-f051814ed0e63badbfd68049354f36259dbf4b49.zip CMake-f051814ed0e63badbfd68049354f36259dbf4b49.tar.gz CMake-f051814ed0e63badbfd68049354f36259dbf4b49.tar.bz2 |
Convert builtin help to reStructuredText source files
Run the convert-help.bash script to convert documentation:
./convert-help.bash "/path/to/CMake-build/bin"
Then remove it.
Diffstat (limited to 'Help/command/include_directories.rst')
-rw-r--r-- | Help/command/include_directories.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Help/command/include_directories.rst b/Help/command/include_directories.rst new file mode 100644 index 0000000..6744427 --- /dev/null +++ b/Help/command/include_directories.rst @@ -0,0 +1,30 @@ +include_directories +------------------- + +Add include directories to the build. + +:: + + include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...) + +Add the given directories to those the compiler uses to search for +include files. Relative paths are interpreted as relative to the +current source directory. + +The include directories are added to the directory property +INCLUDE_DIRECTORIES for the current CMakeLists file. They are also +added to the target property INCLUDE_DIRECTORIES for each target in +the current CMakeLists file. The target property values are the ones +used by the generators. + +By default the directories are appended onto the current list of +directories. This default behavior can be changed by setting +CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. By using AFTER or BEFORE +explicitly, you can select between appending and prepending, +independent of the default. + +If the SYSTEM option is given, the compiler will be told the +directories are meant as system include directories on some platforms +(signalling this setting might achieve effects such as the compiler +skipping warnings, or these fixed-install system files not being +considered in dependency calculations - see compiler docs). |