Rearranged Linux tests

This commit is contained in:
Pavel Kirienko
2014-09-13 17:59:31 +04:00
parent 07f60b4aab
commit 704f89ce07
8 changed files with 23 additions and 11 deletions
+23 -11
View File
@@ -26,25 +26,37 @@ else ()
endif ()
#
# Test/demo executables
# Applications - tests, tools.
#
include_directories(include)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -pedantic -std=c++0x -g3") # GCC or Clang
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -std=c++0x") # GCC or Clang
add_executable(test_clock test/test_clock.cpp)
#
# Tests
# These aren't installed, an average library user should not care about them.
#
add_executable(test_clock apps/test_clock.cpp)
target_link_libraries(test_clock ${UAVCAN_LIB} rt)
add_executable(test_socket test/test_socket.cpp)
add_executable(test_socket apps/test_socket.cpp)
target_link_libraries(test_socket ${UAVCAN_LIB} rt)
add_executable(test_node test/test_node.cpp)
add_executable(test_node apps/test_node.cpp)
target_link_libraries(test_node ${UAVCAN_LIB} rt)
add_executable(test_node_status_monitor test/test_node_status_monitor.cpp)
target_link_libraries(test_node_status_monitor ${UAVCAN_LIB} rt)
add_executable(test_time_sync test/test_time_sync.cpp)
add_executable(test_time_sync apps/test_time_sync.cpp)
target_link_libraries(test_time_sync ${UAVCAN_LIB} rt)
add_executable(test_nodetool test/test_nodetool.cpp)
target_link_libraries(test_nodetool ${UAVCAN_LIB} rt)
#
# Tools
# Someday they will be replaced with Python scripts (pyuavcan is not finished at the moment)
#
add_executable(uavcan_status_monitor apps/uavcan_status_monitor.cpp)
target_link_libraries(uavcan_status_monitor ${UAVCAN_LIB} rt)
add_executable(uavcan_nodetool apps/uavcan_nodetool.cpp)
target_link_libraries(uavcan_nodetool ${UAVCAN_LIB} rt)
install(TARGETS uavcan_status_monitor
uavcan_nodetool
RUNTIME DESTINATION bin)