Adding a FindCatch2.cmake and cleaning up raylib import

This commit is contained in:
Zoe Roux
2021-05-20 15:08:33 +02:00
parent 724ff9189c
commit 2b5fe67dbe
3 changed files with 27 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.11)
if (NOT Catch2_FOUND)
Include(FetchContent)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.1)
FetchContent_MakeAvailable(Catch2)
endif()