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:
@@ -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
|
||||
)
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user