mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-18 10:45:51 +00:00
20 lines
465 B
CMake
20 lines
465 B
CMake
FetchContent_Declare(
|
|
googletest
|
|
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
|
|
)
|
|
|
|
FetchContent_GetProperties(googletest)
|
|
|
|
if(NOT googletest_POPULATED)
|
|
FetchContent_Populate(googletest)
|
|
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
|
|
endif()
|
|
|
|
target_link_libraries(clio_tests PUBLIC clio gtest_main)
|
|
|
|
enable_testing()
|
|
|
|
include(GoogleTest)
|
|
|
|
gtest_discover_tests(clio_tests)
|