mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
updated some examples and docs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user