"Fossies" - the Fresh Open Source Software Archive

Member "cmake-3.6.2-win32-x86/share/cmake-3.6/Help/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.rst" (7 Sep 2016, 1268 Bytes) of archive /windows/misc/cmake-3.6.2-win32-x86.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.


.. |property_name| replace:: include directories .. |command_name| replace:: :command:target_include_directories .. |PROPERTY_INTERFACE_NAME| replace:: INTERFACE_INCLUDE_DIRECTORIES .. |PROPERTY_LINK| replace:: :prop_tgt:INCLUDE_DIRECTORIES .. |PROPERTY_GENEX| replace:: $<TARGET_PROPERTY:foo,INTERFACE_INCLUDE_DIRECTORIES> .. include:: INTERFACE_BUILD_PROPERTY.txt

Include directories usage requirements commonly differ between the build-tree and the install-tree. The BUILD_INTERFACE and INSTALL_INTERFACE generator expressions can be used to describe separate usage requirements based on the usage location. Relative paths are allowed within the INSTALL_INTERFACE expression and are interpreted relative to the installation prefix. For example:

.. code-block:: cmake

target_include_directories(mylib INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/mylib> $<INSTALL_INTERFACE:include/mylib> # /include/mylib )

Creating Relocatable Packages ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^