tests/CMakeLists.txt

changeset 753
24dc84788dee
parent 728
71c4ac35c1ce
child 756
0b635553b86a
equal deleted inserted replaced
752:aaad6674a1a3 753:24dc84788dee
1 # Use C++ for Testing 1 cmake_minimum_required(VERSION 3.14)
2 project(ucxtest VERSION 3.0 DESCRIPTION "UAP Common Extensions - Tests")
3
4 # Configuration
5 cmake_policy(SET CMP0077 NEW)
2 set(CMAKE_CXX_STANDARD 17) 6 set(CMAKE_CXX_STANDARD 17)
7 enable_testing()
3 8
4 # Load Google Test Framework 9 # Load Google Test Framework
5 option(INSTALL_GTEST "By default googletest shall not be installed." OFF) 10 option(INSTALL_GTEST "By default googletest shall not be installed." OFF)
6 option(BUILD_GMOCK "In this project we do not need gmock." OFF) 11 option(BUILD_GMOCK "In this project we do not need gmock." OFF)
7 include(FetchContent) 12 include(FetchContent)
29 test_mempool.cpp 34 test_mempool.cpp
30 test_printf.cpp 35 test_printf.cpp
31 selftest.cpp 36 selftest.cpp
32 util_allocator.cpp 37 util_allocator.cpp
33 ) 38 )
34 target_link_libraries(ucxtest PRIVATE ucx_static gtest_main) 39 target_link_libraries(ucxtest ${CMAKE_BINARY_DIR}/../libucx${STLIB_EXT} gtest_main)
35 gtest_discover_tests(ucxtest) 40 gtest_discover_tests(ucxtest)

mercurial