aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-04-27 16:02:56 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2020-04-27 16:02:56 -0400
commitd272f110730b353f60f45d8422f18d445f55f769 (patch)
treeea622a608e85f3a8e6c46f85fe4ea744c3d5737d /CMakeLists.txt
parent184e6ed916711175c5b60b0286b1499d80c42d00 (diff)
downloadpugixml-d272f110730b353f60f45d8422f18d445f55f769.zip
pugixml-d272f110730b353f60f45d8422f18d445f55f769.tar.gz
pugixml-d272f110730b353f60f45d8422f18d445f55f769.tar.bz2
Export targets from build directory
This will allow projects to use pugixml from its build directory rather than having to install it.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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"