Files
blank-slate/cmake/googletest.cmake
McMassiveNZ b684c077f6 Revert googletest.cmake
Continue to use FetchContent for google test stuff. CPM seems to be doing something which stops it from compiling on Ubuntu with LLVM
2023-05-29 10:08:52 +02:00

17 lines
480 B
CMake

include_guard()
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # 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)
set_property(TARGET
gtest
gtest_main
gmock
gmock_main
PROPERTY FOLDER third_party/GoogleTest)