test/CMakeLists.txt

Sun, 20 Nov 2022 12:17:34 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 20 Nov 2022 12:17:34 +0100
changeset 617
cec11387c1be
parent 596
52fcaf3c9154
child 631
406376e64fd8
permissions
-rw-r--r--

fix include in array_list.h

# Load Google Test Framework
set(CMAKE_CXX_STANDARD 17)

include(FetchContent)
FetchContent_Declare(
        googletest
        GIT_REPOSITORY https://github.com/google/googletest.git
        GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # release 1.11.0
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
include(GoogleTest)
message(STATUS "Google Test made available")

add_executable(ucxtest
        test_allocator.cpp
        test_string.cpp
        test_buffer.cpp
        test_list.cpp
        test_tree.cpp
        test_hash_key.cpp
        test_map.cpp
        test_basic_mempool.cpp
        selftest.cpp
        util_allocator.cpp
        )
target_link_libraries(ucxtest PRIVATE ucx_static gtest_main)
gtest_discover_tests(ucxtest)

mercurial