From 8545c4181e0f28c93296bb461de19b2b9c207c24 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 17 Jul 2019 19:33:00 -0700 Subject: fixes #969 CMake : export target to current build scope --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b828537e..cce1d478 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -253,6 +253,10 @@ install (EXPORT ${PROJECT_NAME}-target COMPONENT Library ) +export (EXPORT ${PROJECT_NAME}-target + FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-targets.cmake + NAMESPACE nng::) + # Install the header files. install(DIRECTORY ../include/nng DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} -- cgit v1.2.3-70-g09d2