From 0e8bec0dc0504ab67491e2aa34d0bc49cb60d919 Mon Sep 17 00:00:00 2001 From: Ubpa Date: Tue, 3 Nov 2020 01:01:39 +0800 Subject: [PATCH] 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 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 700ce6e..e1fb456 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}::)