Files
he/process/tools/mbpoll/mbpoll-master/tests/CMakeLists.txt
T

17 lines
537 B
CMake
Raw Normal View History

2026-06-22 15:35:18 +08:00
# Test targets for mbpoll
# Unit tests for serial module functions
# Enable testing with CTest
enable_testing()
# Serial module tests
add_executable(test_serial test_serial.c ../src/serial.c)
target_include_directories(test_serial PRIVATE ../src)
add_test(NAME test_serial COMMAND test_serial)
# Utils module tests
add_executable(test_utils test_utils.c ../src/utils.c)
target_include_directories(test_utils PRIVATE ../src)
target_compile_definitions(test_utils PRIVATE SKIP_FAILURE_EXIT)
add_test(NAME test_utils COMMAND test_utils)