tests/CMakeLists.txt

changeset 767
d31f4d4075dc
parent 766
e59b76889f00
child 768
0e1cf2cd500e
     1.1 --- a/tests/CMakeLists.txt	Wed Dec 20 16:46:14 2023 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,41 +0,0 @@
     1.4 -cmake_minimum_required(VERSION 3.14)
     1.5 -project(ucxtest VERSION 3.0 DESCRIPTION "UAP Common Extensions - Tests")
     1.6 -
     1.7 -# Configuration
     1.8 -cmake_policy(SET CMP0077 NEW)
     1.9 -set(CMAKE_CXX_STANDARD 17)
    1.10 -enable_testing()
    1.11 -
    1.12 -# Load Google Test Framework
    1.13 -option(INSTALL_GTEST "By default googletest shall not be installed." OFF)
    1.14 -option(BUILD_GMOCK "In this project we do not need gmock." OFF)
    1.15 -include(FetchContent)
    1.16 -FetchContent_Declare(
    1.17 -        googletest
    1.18 -        GIT_REPOSITORY https://github.com/google/googletest.git
    1.19 -        GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # release 1.11.0
    1.20 -)
    1.21 -# For Windows: Prevent overriding the parent project's compiler/linker settings
    1.22 -set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
    1.23 -FetchContent_MakeAvailable(googletest)
    1.24 -include(GoogleTest)
    1.25 -message(STATUS "Google Test made available")
    1.26 -
    1.27 -add_executable(ucxtest
    1.28 -        test_utils.cpp
    1.29 -        test_allocator.cpp
    1.30 -        test_compare.cpp
    1.31 -        test_string.cpp
    1.32 -        test_buffer.cpp
    1.33 -        test_list.cpp
    1.34 -        test_hash_key.cpp
    1.35 -        test_map.cpp
    1.36 -        test_map_generics.c
    1.37 -        test_mempool.cpp
    1.38 -        test_printf.cpp
    1.39 -        selftest.cpp
    1.40 -        util_allocator.cpp
    1.41 -        )
    1.42 -target_include_directories(ucxtest PRIVATE ${CMAKE_SOURCE_DIR}/../src)
    1.43 -target_link_libraries(ucxtest ${CMAKE_BINARY_DIR}/../libucx_static${STLIB_EXT} gtest_main)
    1.44 -gtest_discover_tests(ucxtest)

mercurial