diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-04-27 16:02:56 -0400 |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-04-27 16:02:56 -0400 |
commit | d272f110730b353f60f45d8422f18d445f55f769 (patch) | |
tree | ea622a608e85f3a8e6c46f85fe4ea744c3d5737d /CMakeLists.txt | |
parent | 184e6ed916711175c5b60b0286b1499d80c42d00 (diff) | |
download | pugixml-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.txt | 3 |
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" |