mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-19 04:34:36 +03:00
Update from inc to include directory
This commit is contained in:
@@ -14,7 +14,7 @@ The files in this tutorial are below:
|
||||
$ tree
|
||||
.
|
||||
├── CMakeLists.txt
|
||||
├── inc
|
||||
├── include
|
||||
│ └── Hello.h
|
||||
└── src
|
||||
├── Hello.cpp
|
||||
@@ -22,7 +22,7 @@ $ tree
|
||||
```
|
||||
|
||||
* link:CMakeLists.txt[] - Contains the CMake commands you wish to run
|
||||
* link:inc/Hello.h[] - The header file to include
|
||||
* link:include/Hello.h[] - The header file to include
|
||||
* link:src/Hello.cpp[] - A source file to compile
|
||||
* link:src/main.cpp[] - The source file with main
|
||||
|
||||
@@ -53,7 +53,7 @@ In this example, we include directories in the library using the +target_include
|
||||
[source,cmake]
|
||||
----
|
||||
target_include_directories(hello_library
|
||||
PUBLIC ${PROJECT_SOURCE_DIR}/inc
|
||||
PUBLIC ${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user