CMakeLists.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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_gcodefindreplace.cpp
  18. test_gcodewriter.cpp
  19. test_layers.cpp
  20. test_model.cpp
  21. test_multi.cpp
  22. test_perimeters.cpp
  23. test_print.cpp
  24. test_printgcode.cpp
  25. test_printobject.cpp
  26. test_retraction.cpp
  27. test_shells.cpp
  28. test_skirt_brim.cpp
  29. test_support_material.cpp
  30. test_thin_walls.cpp
  31. test_trianglemesh.cpp
  32. )
  33. target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
  34. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  35. if (WIN32)
  36. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  37. endif()
  38. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  39. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})