CMakeLists.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
  2. add_executable(${_TEST_NAME}_tests
  3. ${_TEST_NAME}_tests.cpp
  4. test_amf.cpp
  5. test_line.cpp
  6. test_point.cpp
  7. test_3mf.cpp
  8. test_aabbindirect.cpp
  9. test_kdtreeindirect.cpp
  10. test_arachne.cpp
  11. test_arc_welder.cpp
  12. test_clipper_offset.cpp
  13. test_clipper_utils.cpp
  14. test_color.cpp
  15. test_config.cpp
  16. test_curve_fitting.cpp
  17. test_cut_surface.cpp
  18. test_elephant_foot_compensation.cpp
  19. test_expolygon.cpp
  20. test_geometry.cpp
  21. test_placeholder_parser.cpp
  22. test_polygon.cpp
  23. test_polyline.cpp
  24. test_mutable_polygon.cpp
  25. test_mutable_priority_queue.cpp
  26. test_stl.cpp
  27. test_meshboolean.cpp
  28. test_marchingsquares.cpp
  29. test_region_expansion.cpp
  30. test_timeutils.cpp
  31. test_utils.cpp
  32. test_voronoi.cpp
  33. test_optimizers.cpp
  34. test_png_io.cpp
  35. test_surface_mesh.cpp
  36. test_timeutils.cpp
  37. test_quadric_edge_collapse.cpp
  38. test_triangulation.cpp
  39. test_emboss.cpp
  40. test_indexed_triangle_set.cpp
  41. test_astar.cpp
  42. test_anyptr.cpp
  43. test_jump_point_search.cpp
  44. test_support_spots_generator.cpp
  45. ../data/prusaparts.cpp
  46. ../data/prusaparts.hpp
  47. test_static_map.cpp
  48. )
  49. if (TARGET OpenVDB::openvdb)
  50. target_sources(${_TEST_NAME}_tests PRIVATE test_hollowing.cpp)
  51. endif()
  52. target_link_libraries(${_TEST_NAME}_tests test_common test_common_data libslic3r)
  53. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  54. if (WIN32)
  55. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  56. endif()
  57. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  58. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})