CMakeLists.txt 906 B

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