mirror of
https://github.com/catchorg/Catch2.git
synced 2025-07-06 17:35:31 +02:00
Added export(...) commands to add Catch to CMake package registry
This commit is contained in:
parent
f00257e374
commit
27cd01ef59
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user