include(FetchContent) FetchContent_Declare( gtest #GIT_REPOSITORY https://gitee.com/mirrors/googletest.git GIT_REPOSITORY http://212.129.155.29:3000/gitMirror/googletest.git SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/gtest GIT_TAG main ) FetchContent_MakeAvailable(gtest)