updated some examples and docs

This commit is contained in:
Thom Troy
2016-08-17 23:59:46 +01:00
parent 8401b8e4e6
commit dd8f9454de
8 changed files with 97 additions and 33 deletions

View File

@@ -48,7 +48,16 @@ the sources from the +library_SOURCES+ variable.
## Populating Including Directories
In this example, we include directories in the library using the +target_include_directories()+ function with the scope set to +PUBLIC+. This will cause the included directory used in the following places:
In this example, we include directories in the library using the +target_include_directories()+ function with the scope set to +PUBLIC+.
[source,cmake]
----
target_include_directories(hello_library
PUBLIC ${PROJECT_SOURCE_DIR}/inc
)
----
This will cause the included directory used in the following places:
* When compiling the library
* When compiling any additional target that links the library.