CMakeLists.txt 788 B

1234567891011121314151617181920212223242526272829
  1. get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
  2. add_executable(${_TEST_NAME}_tests
  3. ${_TEST_NAME}_tests.cpp
  4. test_clipper.cpp
  5. test_data.cpp
  6. test_data.hpp
  7. test_extrusion_entity.cpp
  8. test_fill.cpp
  9. test_flow.cpp
  10. test_gcode.cpp
  11. test_gcodefindreplace.cpp
  12. test_gcodewriter.cpp
  13. test_model.cpp
  14. test_print.cpp
  15. test_printgcode.cpp
  16. test_printobject.cpp
  17. test_skirt_brim.cpp
  18. test_support_material.cpp
  19. test_trianglemesh.cpp
  20. )
  21. target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
  22. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  23. if (WIN32)
  24. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  25. endif()
  26. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  27. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})