| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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}
- ../src/algorithm/transform_tree.cpp
- # ${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})
- add_executable(test_ndi
- ./interface/ndi.cpp
- ../src/tracker/ndi/ndi_interface.cpp
- ${CORE_IMPL_FILES})
- target_compile_definitions(test_ndi PUBLIC SOPHIAR_TEST)
- #target_compile_definitions(test_ndi PUBLIC CORO_SIGNAL2_USE_TIMER)
- target_link_libraries(test_ndi ${Boost_LIBRARIES} ${EXTRA_LIBS})
|