test/CMakeLists.txt

Mon, 18 Apr 2022 15:59:09 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 18 Apr 2022 15:59:09 +0200
changeset 525
536646d1575b
parent 522
b91c50d023f4
child 530
e866516cac17
permissions
-rw-r--r--

simplify auto-free contents in lists

# 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_list.cpp
        test_tree.cpp
        selftest.cpp
        util_allocator.cpp
        )
target_link_libraries(ucxtest PRIVATE ucx_static gtest_main)
gtest_discover_tests(ucxtest)

mercurial