Added export(...) commands to add Catch to CMake package registry

This commit is contained in:
Saad Khattak 2018-04-14 21:16:22 -04:00
parent f00257e374
commit 27cd01ef59
1 changed files with 7 additions and 4 deletions

View File

@ -444,6 +444,9 @@ install(EXPORT Catch2Config
NAMESPACE Catch2:: NAMESPACE Catch2::
DESTINATION ${CATCH_CMAKE_CONFIG_DESTINATION}) DESTINATION ${CATCH_CMAKE_CONFIG_DESTINATION})
export(TARGETS Catch FILE Catch2Config.cmake)
export(PACKAGE Catch)
# install Catch2ConfigVersion.cmake file to handle versions in find_package # install Catch2ConfigVersion.cmake file to handle versions in find_package
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)