mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-24 06:16:10 +01:00
1af60ef5ab
This lets us add the installed helper scripts to the cmake module path, letting CMake users just include them after requiring Catch2 package.
11 lines
250 B
CMake
11 lines
250 B
CMake
@PACKAGE_INIT@
|
|
|
|
|
|
# Avoid repeatedly including the targets
|
|
if(NOT TARGET Catch2::Catch2)
|
|
# Provide path for scripts
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/Catch2Targets.cmake)
|
|
endif()
|