From 86ad397b393b04638445a1c63efc1aded59821fc Mon Sep 17 00:00:00 2001 From: Ubpa Date: Sat, 7 Nov 2020 12:23:22 +0800 Subject: [PATCH] CMakeLists.txt : add export 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 6e5601b..2dcb31a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,3 +22,6 @@ install(EXPORT argparseConfig DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/argparse) install(FILES ${CMAKE_CURRENT_LIST_DIR}/include/argparse/argparse.hpp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/argparse) + +export(EXPORT argparseConfig + NAMESPACE argparse::)