CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
  2. add_executable(${_TEST_NAME}_tests
  3. ${_TEST_NAME}_tests.cpp
  4. test_amf.cpp
  5. test_3mf.cpp
  6. test_aabbindirect.cpp
  7. test_arachne.cpp
  8. test_clipper_offset.cpp
  9. test_clipper_utils.cpp
  10. test_config.cpp
  11. test_elephant_foot_compensation.cpp
  12. test_geometry.cpp
  13. test_placeholder_parser.cpp
  14. test_polygon.cpp
  15. test_mutable_polygon.cpp
  16. test_mutable_priority_queue.cpp
  17. test_stl.cpp
  18. test_meshboolean.cpp
  19. test_marchingsquares.cpp
  20. test_timeutils.cpp
  21. test_voronoi.cpp
  22. test_optimizers.cpp
  23. test_png_io.cpp
  24. test_timeutils.cpp
  25. test_indexed_triangle_set.cpp
  26. ../libnest2d/printer_parts.cpp
  27. )
  28. if (TARGET OpenVDB::openvdb)
  29. target_sources(${_TEST_NAME}_tests PRIVATE test_hollowing.cpp)
  30. endif()
  31. target_link_libraries(${_TEST_NAME}_tests test_common test_common_data libslic3r)
  32. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  33. if (WIN32)
  34. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  35. endif()
  36. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  37. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})