From d272f110730b353f60f45d8422f18d445f55f769 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Mon, 27 Apr 2020 16:02:56 -0400 Subject: [PATCH] Export targets from build directory This will allow projects to use pugixml from its build directory rather than having to install it. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a5d3558..a0254d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,6 +174,9 @@ install(EXPORT pugixml-targets NAMESPACE pugixml:: DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pugixml COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT}) +export(EXPORT pugixml-targets + NAMESPACE pugixml::) + install(FILES "${PROJECT_BINARY_DIR}/pugixml-config-version.cmake" "${PROJECT_BINARY_DIR}/pugixml-config.cmake"