You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
499 B
18 lines
499 B
include_guard()
|
|
|
|
if (NOT TARGET Catch2::Catch2)
|
|
FetchContent_Declare(
|
|
Catch2
|
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
|
GIT_TAG v2.13.9
|
|
GIT_SHALLOW TRUE
|
|
)
|
|
|
|
FetchContent_GetProperties(Catch2)
|
|
if(NOT catch2_POPULATED)
|
|
FetchContent_Populate(Catch2)
|
|
add_subdirectory(${catch2_SOURCE_DIR} ${catch2_BINARY_DIR})
|
|
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/contrib)
|
|
include(Catch)
|
|
endif()
|
|
endif()
|
|
|