CMakeLists.txt 957 B

12345678910111213141516171819202122232425
  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_worker.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})