mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 19:25:53 +00:00
21 lines
522 B
CMake
21 lines
522 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 gmock_main)
|
|
target_include_directories(clio_tests PRIVATE unittests)
|
|
|
|
enable_testing()
|
|
|
|
include(GoogleTest)
|
|
|
|
gtest_discover_tests(clio_tests)
|