CMakeLists.txt 775 B

123456789101112131415161718192021222324252627
  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_extrusion_entity.cpp
  6. test_fill.cpp
  7. test_flow.cpp
  8. test_gcode.cpp
  9. test_gcodefindreplace.cpp
  10. test_gcodewriter.cpp
  11. test_model.cpp
  12. test_print.cpp
  13. test_printgcode.cpp
  14. test_printobject.cpp
  15. test_skirt_brim.cpp
  16. test_support_material.cpp
  17. test_trianglemesh.cpp
  18. )
  19. target_link_libraries(${_TEST_NAME}_tests test_common test_common_data libslic3r)
  20. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  21. if (WIN32)
  22. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  23. endif()
  24. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  25. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})