CMakeLists.txt 813 B

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