aboutsummaryrefslogtreecommitdiff
path: root/dep/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dep/CMakeLists.txt')
-rw-r--r--dep/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt
index cd157398f42..8ef8d7488b8 100644
--- a/dep/CMakeLists.txt
+++ b/dep/CMakeLists.txt
@@ -36,3 +36,12 @@ endif()
if(TOOLS)
add_subdirectory(CascLib)
endif()
+
+if(BUILD_TESTING)
+ include(FetchContent)
+ FetchContent_Declare(Catch2
+ GIT_REPOSITORY https://github.com/catchorg/Catch2.git
+ GIT_TAG v2.13.0
+ GIT_SHALLOW 1)
+ FetchContent_MakeAvailable(Catch2)
+endif()