tests/CMakeLists.txt

Fri, 07 Jul 2023 20:22:30 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 07 Jul 2023 20:22:30 +0200
changeset 746
b4bd0155f03f
parent 728
71c4ac35c1ce
child 753
24dc84788dee
permissions
-rw-r--r--

improve the CSV example

# Use C++ for Testing
set(CMAKE_CXX_STANDARD 17)

# Load Google Test Framework
option(INSTALL_GTEST "By default googletest shall not be installed." OFF)
option(BUILD_GMOCK "In this project we do not need gmock." OFF)
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_utils.cpp
        test_allocator.cpp
        test_compare.cpp
        test_string.cpp
        test_buffer.cpp
        test_list.cpp
        test_hash_key.cpp
        test_map.cpp
        test_map_generics.c
        test_mempool.cpp
        test_printf.cpp
        selftest.cpp
        util_allocator.cpp
        )
target_link_libraries(ucxtest PRIVATE ucx_static gtest_main)
gtest_discover_tests(ucxtest)

mercurial