2019-10-15 07:40:40 +00:00
|
|
|
get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
|
2019-11-01 14:31:26 +00:00
|
|
|
|
2019-10-15 07:40:40 +00:00
|
|
|
add_executable(${_TEST_NAME}_tests
|
|
|
|
${_TEST_NAME}_tests.cpp
|
2019-10-16 11:20:09 +00:00
|
|
|
test_3mf.cpp
|
2020-05-20 14:30:30 +00:00
|
|
|
test_aabbindirect.cpp
|
2022-05-09 10:51:58 +00:00
|
|
|
test_kdtreeindirect.cpp
|
2019-10-25 11:34:37 +00:00
|
|
|
test_clipper_offset.cpp
|
2019-10-25 15:07:55 +00:00
|
|
|
test_clipper_utils.cpp
|
2021-12-22 09:45:35 +00:00
|
|
|
test_color.cpp
|
2019-10-18 09:53:19 +00:00
|
|
|
test_config.cpp
|
2022-03-15 13:52:55 +00:00
|
|
|
test_curve_fitting.cpp
|
2019-11-01 18:59:09 +00:00
|
|
|
test_elephant_foot_compensation.cpp
|
2019-10-15 07:40:40 +00:00
|
|
|
test_geometry.cpp
|
2020-01-21 11:10:02 +00:00
|
|
|
test_placeholder_parser.cpp
|
2019-10-15 16:08:32 +00:00
|
|
|
test_polygon.cpp
|
2022-05-05 15:57:48 +00:00
|
|
|
test_polyline.cpp
|
2021-03-01 17:41:36 +00:00
|
|
|
test_mutable_polygon.cpp
|
2021-07-09 10:53:16 +00:00
|
|
|
test_mutable_priority_queue.cpp
|
2019-10-18 11:05:22 +00:00
|
|
|
test_stl.cpp
|
2020-05-28 13:53:53 +00:00
|
|
|
test_meshboolean.cpp
|
|
|
|
test_marchingsquares.cpp
|
|
|
|
test_timeutils.cpp
|
2022-08-18 11:32:30 +00:00
|
|
|
test_utils.cpp
|
2020-05-28 13:53:53 +00:00
|
|
|
test_voronoi.cpp
|
2020-08-31 16:53:44 +00:00
|
|
|
test_optimizers.cpp
|
2020-04-27 16:43:47 +00:00
|
|
|
test_png_io.cpp
|
|
|
|
test_timeutils.cpp
|
2021-05-28 12:55:25 +00:00
|
|
|
test_indexed_triangle_set.cpp
|
2022-05-11 10:06:07 +00:00
|
|
|
test_astar.cpp
|
2021-10-01 16:07:30 +00:00
|
|
|
../libnest2d/printer_parts.cpp
|
2019-10-15 07:40:40 +00:00
|
|
|
)
|
2019-11-01 14:31:26 +00:00
|
|
|
|
|
|
|
if (TARGET OpenVDB::openvdb)
|
|
|
|
target_sources(${_TEST_NAME}_tests PRIVATE test_hollowing.cpp)
|
|
|
|
endif()
|
|
|
|
|
2019-10-15 07:40:40 +00:00
|
|
|
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
|
|
|
|
set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
|
|
|
|
|
2020-02-05 17:22:17 +00:00
|
|
|
if (WIN32)
|
|
|
|
prusaslicer_copy_dlls(${_TEST_NAME}_tests)
|
|
|
|
endif()
|
|
|
|
|
2019-10-15 07:40:40 +00:00
|
|
|
# catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
|
2019-10-25 08:41:56 +00:00
|
|
|
add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})
|