Update from inc to include directory

This commit is contained in:
Thom Troy
2017-07-02 21:20:36 +01:00
parent 72f1c92761
commit 420969b4d9
12 changed files with 18 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ add_library(hello_library SHARED ${library_SOURCES})
add_library(hello::library ALIAS hello_library)
target_include_directories(hello_library
PUBLIC ${PROJECT_SOURCE_DIR}/inc
PUBLIC ${PROJECT_SOURCE_DIR}/include
)
############################################################
@@ -34,4 +34,4 @@ add_executable(hello_binary ${binary_SOURCES})
# link the new hello_library target with the hello_binary target
target_link_libraries( hello_binary
PRIVATE hello::library
)
)

View File

@@ -16,7 +16,7 @@ The files in this tutorial are below:
$ tree
.
├── CMakeLists.txt
├── inc
├── include
│   └── Hello.h
└── src
├── Hello.cpp
@@ -24,7 +24,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