FetchContent_Declare( gtest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG release-1.12.1 GIT_PROGRESS TRUE ) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(gtest)