test/CMakeLists.txt

Fri, 12 Aug 2022 16:48:59 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 12 Aug 2022 16:48:59 +0200
changeset 574
d566bd3e6af8
parent 571
f83583a0bbac
child 583
0f3c9662f9b5
permissions
-rw-r--r--

invert if-condition in preparation for the next bugfix

# 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_buffer.cpp
        test_list.cpp
        test_tree.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