From 4b3117e71385c40517aa384f67ee9001e95cdffc Mon Sep 17 00:00:00 2001 From: fbdtemme <69114541+fbdtemme@users.noreply.github.com> Date: Sun, 27 Dec 2020 15:05:57 +0100 Subject: [PATCH] Enable importing cmake targets from the build tree (#39, thanks @fbdtemme) --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 102c0ff..0df176a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,4 +121,10 @@ install( DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" ) +export( + EXPORT ${package_target} + NAMESPACE ${package_nspace}:: + FILE "${CMAKE_CURRENT_BINARY_DIR}/${package_name}-targets.cmake" +) + # end of file