From 9c868601591b60cf066eb576e85b0dbf4e1fd7ae Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 25 Jun 2022 16:20:51 +0200 Subject: test: replace gtest with Catch2 & Trompeloeil --- lib/CMakeLists.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'lib/CMakeLists.txt') diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 6a5d90d..4e2b318 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -43,10 +43,18 @@ add_subdirectory(backward) if(test) FetchContent_Declare( - gtest - GIT_REPOSITORY "https://github.com/google/googletest" - GIT_TAG v1.11.0 + catch2 + GIT_REPOSITORY "https://github.com/catchorg/Catch2" + GIT_TAG v3.0.1 ) - add_subdirectory(gtest) + add_subdirectory(catch2) + + FetchContent_Declare( + trompeloeil + GIT_REPOSITORY "https://github.com/rollbear/trompeloeil" + GIT_TAG v42 + ) + + add_subdirectory(trompeloeil) endif() -- cgit v1.2.3-18-g5258