feat: Move scripts to CMAKE_MODULE_PATH

This commit is contained in:
Xiphoseer
2024-01-05 20:10:48 +01:00
parent 17305831a1
commit cb065a07af
6 changed files with 46 additions and 29 deletions

View File

@@ -0,0 +1,17 @@
include(FetchContent)
message(STATUS "Fetching gtest...")
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.12.1
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(GoogleTest)
message(STATUS "gtest fetched and is now ready.")
set(GoogleTest_FOUND TRUE)