build(gtest): added gtest as a subproject in case it is not already installed on the system

This commit is contained in:
2025-03-13 14:12:14 -04:00
parent bb0ec4d341
commit 46dfb17385
263 changed files with 111287 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
if (@GTEST_HAS_PTHREAD@)
set(THREADS_PREFER_PTHREAD_FLAG @THREADS_PREFER_PTHREAD_FLAG@)
find_dependency(Threads)
endif()
if (@GTEST_HAS_ABSL@)
find_dependency(absl)
find_dependency(re2)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
check_required_components("@project_name@")