514:6f9d97a53d67 | 515:6d3909bf1609 |
---|---|
8 | 8 |
9 if (CUNIT_FOUND) | 9 if (CUNIT_FOUND) |
10 message(CHECK_PASS "found: compiling tests.") | 10 message(CHECK_PASS "found: compiling tests.") |
11 set(TESTS | 11 set(TESTS |
12 test_list | 12 test_list |
13 test_tree | |
14 ) | 13 ) |
15 | 14 |
16 foreach (test ${TESTS}) | 15 foreach (test ${TESTS}) |
17 add_executable(${test} ${test}.c) | 16 add_executable(${test} ${test}.c) |
18 target_link_libraries(${test} PRIVATE ucx_static ${CUNIT_LIBRARY}) | 17 target_link_libraries(${test} PRIVATE ucx_static ${CUNIT_LIBRARY}) |
38 include(GoogleTest) | 37 include(GoogleTest) |
39 message(STATUS "Google Test made available") | 38 message(STATUS "Google Test made available") |
40 | 39 |
41 add_executable(ucxtest | 40 add_executable(ucxtest |
42 test_allocator.cpp | 41 test_allocator.cpp |
42 test_tree.cpp | |
43 selftest.cpp | 43 selftest.cpp |
44 ) | 44 ) |
45 target_link_libraries(ucxtest PRIVATE ucx_static gtest_main) | 45 target_link_libraries(ucxtest PRIVATE ucx_static gtest_main) |
46 gtest_discover_tests(ucxtest) | 46 gtest_discover_tests(ucxtest) |