|
1 | 1 | # This software is distributed under the terms of the MIT License. |
2 | 2 | # Copyright (c) 2016 OpenCyphal. |
3 | 3 | # Author: Pavel Kirienko <pavel@opencyphal.org> |
4 | | -# Contributors: https://github.com/OpenCyphal/libethard/contributors. |
| 4 | +# Contributors: https://github.com/OpenCyphal/libudpard/contributors. |
5 | 5 |
|
6 | 6 | cmake_minimum_required(VERSION 3.12) |
7 | | -project(ethard_tests C CXX) |
| 7 | +project(udpard_tests C CXX) |
8 | 8 | enable_testing() |
9 | 9 |
|
10 | 10 | set(CTEST_OUTPUT_ON_FAILURE ON) |
11 | | -set(library_dir "${CMAKE_SOURCE_DIR}/../libethard") |
| 11 | +set(library_dir "${CMAKE_SOURCE_DIR}/../libudpard") |
12 | 12 |
|
13 | 13 | # Use -DNO_STATIC_ANALYSIS=1 to suppress static analysis. |
14 | 14 | # If not suppressed, the tools used here shall be available, otherwise the build will fail. |
@@ -45,7 +45,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wnon-virtual-dtor |
45 | 45 | include_directories(catch ${library_dir}) |
46 | 46 | add_definitions(-DCATCH_CONFIG_FAST_COMPILE=1 -DCATCH_CONFIG_ENABLE_ALL_STRINGMAKERS=1) |
47 | 47 |
|
48 | | -set(common_sources catch/main.cpp ${library_dir}/ethard.c) |
| 48 | +set(common_sources catch/main.cpp ${library_dir}/udpard.c) |
49 | 49 |
|
50 | 50 | function(gen_test name files compile_definitions compile_flags link_flags c_standard) |
51 | 51 | add_executable(${name} ${common_sources} ${files}) |
@@ -80,7 +80,7 @@ endfunction() |
80 | 80 | # Disable missing declaration warning to allow exposure of private definitions. |
81 | 81 | gen_test_matrix(test_private |
82 | 82 | "test_private_crc.cpp;test_private_rx.cpp;test_private_tx.cpp;test_private_cavl.cpp;" |
83 | | - "-DETHARD_CONFIG_HEADER=\"${CMAKE_CURRENT_SOURCE_DIR}/ethard_config_private.h\"" |
| 83 | + "-DUDPARD_CONFIG_HEADER=\"${CMAKE_CURRENT_SOURCE_DIR}/udpard_config_private.h\"" |
84 | 84 | "-Wno-missing-declarations") |
85 | 85 |
|
86 | 86 | gen_test_matrix(test_public |
|
0 commit comments