include(FetchContent) if(ANDROID) else() # UNIX FetchContent_Declare( gtest URL https://paddleaudio.bj.bcebos.com/build/gtest-release-1.11.0.zip URL_HASH SHA256=353571c2440176ded91c2de6d6cd88ddd41401d14692ec1f99e35d013feda55a ) FetchContent_MakeAvailable(gtest) include_directories(${gtest_BINARY_DIR} ${gtest_SOURCE_DIR}/src) endif() if(ANDROID) add_library(extern_gtest INTERFACE) else() # UNIX add_dependencies(gtest gflags extern_glog) add_library(extern_gtest ALIAS gtest) endif() if(WITH_TESTING) enable_testing() endif()