Skip to content

Commit

Permalink
[arccore,config] Utilise pour Arccore la version interne de 'googlete…
Browse files Browse the repository at this point in the history
…st'.
  • Loading branch information
grospelliergilles committed Feb 21, 2024
1 parent a38e9b6 commit a280f0e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions arccore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,19 @@ if (NOT DEFINED ARCCORE_WANT_TEST)
set(ARCCORE_WANT_TEST TRUE)
endif()

set (ARCCORE_USE_BUNDLED_GOOGLETEST TRUE)
if (ARCCORE_WANT_TEST)
enable_testing()
find_package(GTest)
if (GTEST_FOUND)
if (ARCCORE_USE_BUNDLED_GOOGLETEST)
add_subdirectory(extras/googletest)
include(GoogleTest)
add_library(GTest::GTest ALIAS gtest)
add_library(GTest::Main ALIAS gtest_main)
else()
find_package(GTest)
if (GTEST_FOUND)
include(GoogleTest)
endif()
endif()
endif()

Expand Down

0 comments on commit a280f0e

Please sign in to comment.