| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- set (Boost_USE_STATIC_LIBS OFF)
- find_package (Boost REQUIRED COMPONENTS unit_test_framework)
- include_directories (${Boost_INCLUDE_DIRS})
- file(GLOB_RECURSE TEST_CORE_SRC_FILES ./core/*.cpp)
- add_executable(test_core
- ${TEST_CORE_SRC_FILES}
- ${CORE_IMPL_FILES})
- target_compile_definitions(test_core PUBLIC SOPHIAR_TEST)
- #target_compile_definitions(test_core PUBLIC CORO_SIGNAL2_USE_TIMER)
- target_link_libraries(test_core ${Boost_LIBRARIES} ${EXTRA_LIBS})
- file(GLOB_RECURSE TEST_UTILITY_SRC_FILES ./utility/*.cpp)
- add_executable(test_utility
- ${TEST_UTILITY_SRC_FILES}
- ${CORE_IMPL_FILES})
- target_compile_definitions(test_utility PUBLIC SOPHIAR_TEST)
- target_compile_definitions(test_utility PUBLIC CORO_SIGNAL2_USE_TIMER)
- target_link_libraries(test_utility ${Boost_LIBRARIES} ${EXTRA_LIBS})
- file(GLOB_RECURSE TEST_ALGORITHM_SRC_FILES ./algorithm/*.cpp)
- add_executable(test_algorithm
- ${TEST_ALGORITHM_SRC_FILES}
- ${ALGORITHM_IMPL_FILES}
- # ${ALGORITHM_IMPL_FILES}
- ${CORE_IMPL_FILES})
- target_compile_definitions(test_algorithm PUBLIC SOPHIAR_TEST SOPHIAR_TEST_ALGORITHM)
- target_compile_definitions(test_algorithm PUBLIC CORO_SIGNAL2_USE_TIMER)
- target_link_libraries(test_algorithm ${Boost_LIBRARIES} ${EXTRA_LIBS})
- file(GLOB_RECURSE TEST_ROBOT_SRC_FILES ./robot/*.cpp)
- add_executable(test_robot
- ${TEST_ROBOT_SRC_FILES}
- ${ROBOT_IMPL_FILES}
- ${CORE_IMPL_FILES})
- target_compile_definitions(test_robot PUBLIC SOPHIAR_TEST SOPHIAR_TEST_ROBOT)
- target_compile_definitions(test_robot PUBLIC CORO_SIGNAL2_USE_TIMER)
- target_link_libraries(test_robot ${Boost_LIBRARIES} ${EXTRA_LIBS})
- file(GLOB_RECURSE TEST_NDI_SRC_FILES ./tracker/ndi*.cpp)
- add_executable(test_ndi
- ${TEST_NDI_SRC_FILES}
- ../src/tracker/ndi/ndi_interface.cpp
- ${ALGORITHM_IMPL_FILES}
- ${CORE_IMPL_FILES})
- target_compile_definitions(test_ndi PUBLIC SOPHIAR_TEST SOPHIAR_TEST_NDI SOPHIAR_TEST_ALGORITHM)
- #target_compile_definitions(test_ndi PUBLIC CORO_SIGNAL2_USE_TIMER)
- target_link_libraries(test_ndi ${Boost_LIBRARIES} ${EXTRA_LIBS})
- file(GLOB_RECURSE TEST_SENSOR_SRC_FILES ./sensor/*.cpp)
- add_executable(test_sensor
- ${TEST_SENSOR_SRC_FILES}
- ../src/sensor/optoforce/optoforce_daq.cpp
- ${CORE_IMPL_FILES})
- target_compile_definitions(test_sensor PUBLIC SOPHIAR_TEST SOPHIAR_TEST_SENSOR)
- #target_compile_definitions(test_ndi PUBLIC CORO_SIGNAL2_USE_TIMER)
- target_link_libraries(test_sensor ${Boost_LIBRARIES} ${EXTRA_LIBS})
|