CMakeLists.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
  2. add_executable(${_TEST_NAME}_tests
  3. ${_TEST_NAME}_tests.cpp
  4. test_avoid_crossing_perimeters.cpp
  5. test_bridges.cpp
  6. test_cooling.cpp
  7. test_clipper.cpp
  8. test_custom_gcode.cpp
  9. test_data.cpp
  10. test_data.hpp
  11. test_extrusion_entity.cpp
  12. test_fill.cpp
  13. test_flow.cpp
  14. test_gaps.cpp
  15. test_gcode.cpp
  16. test_gcode_travels.cpp
  17. test_seam_perimeters.cpp
  18. test_seam_shells.cpp
  19. test_seam_geometry.cpp
  20. test_seam_aligned.cpp
  21. test_seam_rear.cpp
  22. test_seam_random.cpp
  23. benchmark_seams.cpp
  24. test_gcodefindreplace.cpp
  25. test_gcodewriter.cpp
  26. test_cancel_object.cpp
  27. test_layers.cpp
  28. test_model.cpp
  29. test_multi.cpp
  30. test_perimeters.cpp
  31. test_print.cpp
  32. test_printgcode.cpp
  33. test_printobject.cpp
  34. test_retraction.cpp
  35. test_shells.cpp
  36. test_skirt_brim.cpp
  37. test_support_material.cpp
  38. test_thin_walls.cpp
  39. test_trianglemesh.cpp
  40. )
  41. target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
  42. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  43. target_compile_definitions(${_TEST_NAME}_tests PUBLIC CATCH_CONFIG_ENABLE_BENCHMARKING)
  44. if (WIN32)
  45. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  46. endif()
  47. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  48. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})