CMakeLists.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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/datanode_base.cpp
  6. # core/geometry_types.cpp
  7. core/small_obj.cpp
  8. core/sophiar_manager.cpp
  9. # core/transform_tree.cpp
  10. core/tristate_obj.cpp
  11. ${EXTERN_DEF_FILES}
  12. ${CORE_IMPL_FILES})
  13. target_compile_definitions(test_core PUBLIC SOPHIAR_TEST)
  14. #target_compile_definitions(test_core PUBLIC CORO_SIGNAL2_USE_TIMER)
  15. target_link_libraries(test_core ${Boost_LIBRARIES} ${EXTRA_LIBS})
  16. add_executable(test_utility
  17. utility/coro_signal2.cpp
  18. utility/coro_signal_group.cpp
  19. utility/coro_worker.cpp
  20. utility/global_obj_helper.cpp
  21. ${EXTERN_DEF_FILES}
  22. ${CORE_IMPL_FILES})
  23. target_compile_definitions(test_utility PUBLIC SOPHIAR_TEST)
  24. target_compile_definitions(test_utility PUBLIC CORO_SIGNAL2_USE_TIMER)
  25. target_link_libraries(test_utility ${Boost_LIBRARIES} ${EXTRA_LIBS})
  26. add_executable(test_ndi
  27. interface/ndi.cpp
  28. ../src/tracker/ndi/ndi_interface.cpp
  29. ${EXTERN_DEF_FILES}
  30. ${CORE_IMPL_FILES})
  31. target_compile_definitions(test_ndi PUBLIC SOPHIAR_TEST)
  32. target_compile_definitions(test_ndi PUBLIC CORO_SIGNAL2_USE_TIMER)
  33. target_link_libraries(test_ndi ${Boost_LIBRARIES} ${EXTRA_LIBS})