diff options
Diffstat (limited to 'source/serial/tests/CMakeLists.txt')
-rw-r--r-- | source/serial/tests/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/serial/tests/CMakeLists.txt b/source/serial/tests/CMakeLists.txt new file mode 100644 index 0000000..e52a4d3 --- /dev/null +++ b/source/serial/tests/CMakeLists.txt @@ -0,0 +1,12 @@ +if(UNIX) + catkin_add_gtest(${PROJECT_NAME}-test unix_serial_tests.cc) + target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME} ${Boost_LIBRARIES}) + if(NOT APPLE) + target_link_libraries(${PROJECT_NAME}-test util) + endif() + + if(NOT APPLE) # these tests are unreliable on macOS + catkin_add_gtest(${PROJECT_NAME}-test-timer unit/unix_timer_tests.cc) + target_link_libraries(${PROJECT_NAME}-test-timer ${PROJECT_NAME}) + endif() +endif() |