CMakeLists.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. set (Boost_USE_STATIC_LIBS OFF)
  2. find_package (Boost REQUIRED COMPONENTS unit_test_framework)
  3. include_directories (${Boost_INCLUDE_DIRS})
  4. file(GLOB_RECURSE TEST_CORE_SRC_FILES ./core/*.cpp)
  5. add_executable(test_core
  6. ${TEST_CORE_SRC_FILES}
  7. ${CORE_IMPL_FILES})
  8. target_compile_definitions(test_core PUBLIC SOPHIAR_TEST)
  9. #target_compile_definitions(test_core PUBLIC CORO_SIGNAL2_USE_TIMER)
  10. target_link_libraries(test_core ${Boost_LIBRARIES} ${EXTRA_LIBS})
  11. file(GLOB_RECURSE TEST_UTILITY_SRC_FILES ./utility/*.cpp)
  12. add_executable(test_utility
  13. ${TEST_UTILITY_SRC_FILES}
  14. ${CORE_IMPL_FILES})
  15. target_compile_definitions(test_utility PUBLIC SOPHIAR_TEST)
  16. target_compile_definitions(test_utility PUBLIC CORO_SIGNAL2_USE_TIMER)
  17. target_link_libraries(test_utility ${Boost_LIBRARIES} ${EXTRA_LIBS})
  18. file(GLOB_RECURSE TEST_ALGORITHM_SRC_FILES ./algorithm/*.cpp)
  19. add_executable(test_algorithm
  20. ${TEST_ALGORITHM_SRC_FILES}
  21. ../src/algorithm/transform_tree.cpp
  22. # ${ALGORITHM_IMPL_FILES}
  23. ${CORE_IMPL_FILES})
  24. target_compile_definitions(test_algorithm PUBLIC SOPHIAR_TEST SOPHIAR_TEST_ALGORITHM)
  25. target_compile_definitions(test_algorithm PUBLIC CORO_SIGNAL2_USE_TIMER)
  26. target_link_libraries(test_algorithm ${Boost_LIBRARIES} ${EXTRA_LIBS})
  27. file(GLOB_RECURSE TEST_ROBOT_SRC_FILES ./robot/*.cpp)
  28. add_executable(test_robot
  29. ${TEST_ROBOT_SRC_FILES}
  30. ${ROBOT_IMPL_FILES}
  31. ${CORE_IMPL_FILES})
  32. target_compile_definitions(test_robot PUBLIC SOPHIAR_TEST SOPHIAR_TEST_ROBOT)
  33. target_compile_definitions(test_robot PUBLIC CORO_SIGNAL2_USE_TIMER)
  34. target_link_libraries(test_robot ${Boost_LIBRARIES} ${EXTRA_LIBS})
  35. add_executable(test_ndi
  36. ./interface/ndi.cpp
  37. ../src/tracker/ndi/ndi_interface.cpp
  38. ${CORE_IMPL_FILES})
  39. target_compile_definitions(test_ndi PUBLIC SOPHIAR_TEST)
  40. #target_compile_definitions(test_ndi PUBLIC CORO_SIGNAL2_USE_TIMER)
  41. target_link_libraries(test_ndi ${Boost_LIBRARIES} ${EXTRA_LIBS})