CMakeLists.txt 973 B

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