CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. set (Boost_USE_STATIC_LIBS OFF)
  2. find_package (Boost REQUIRED COMPONENTS unit_test_framework)
  3. include_directories (${Boost_INCLUDE_DIRS})
  4. add_executable(test_core
  5. core/small_obj.cpp
  6. core/sophiar_manager.cpp
  7. core/transform_tree.cpp
  8. core/tristate_obj.cpp
  9. ${EXTERN_DEF_FILES}
  10. ${CORE_IMPL_FILES})
  11. target_compile_definitions(test_core PUBLIC SOPHIAR_TEST)
  12. #target_compile_definitions(test_core PUBLIC CORO_SIGNAL2_USE_TIMER)
  13. target_link_libraries(test_core ${Boost_LIBRARIES} ${EXTRA_LIBS})
  14. add_executable(test_utility
  15. utility/coro_signal2.cpp
  16. utility/coro_signal_group.cpp
  17. utility/coro_worker.cpp
  18. utility/global_obj_helper.cpp
  19. ${EXTERN_DEF_FILES}
  20. ${CORE_IMPL_FILES})
  21. target_compile_definitions(test_utility PUBLIC SOPHIAR_TEST)
  22. target_compile_definitions(test_utility PUBLIC CORO_SIGNAL2_USE_TIMER)
  23. target_link_libraries(test_utility ${Boost_LIBRARIES} ${EXTRA_LIBS})
  24. add_executable(test_ndi
  25. interface/ndi.cpp
  26. ../src/tracker/ndi/ndi_interface.cpp
  27. ${EXTERN_DEF_FILES}
  28. ${CORE_IMPL_FILES})
  29. target_compile_definitions(test_ndi PUBLIC SOPHIAR_TEST)
  30. target_compile_definitions(test_ndi PUBLIC CORO_SIGNAL2_USE_TIMER)
  31. target_link_libraries(test_ndi ${Boost_LIBRARIES} ${EXTRA_LIBS})