export (#26)
make the project to be used from a build directory reference: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#adding-export-configuration-step-11
This commit is contained in:
parent
02e33b6b18
commit
0e8bec0dc0
1 changed files with 3 additions and 0 deletions
|
@ -45,3 +45,6 @@ install(EXPORT ${PROJECT_NAME}Config
|
|||
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
DESTINATION .)
|
||||
|
||||
export(EXPORT ${PROJECT_NAME}Config
|
||||
NAMESPACE ${PROJECT_NAME}::)
|
||||
|
|
Loading…
Reference in a new issue