get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
add_executable(${_TEST_NAME}_tests 
	${_TEST_NAME}_tests.cpp
	test_helpers.cpp
	test_helpers.hpp
	test_cooling.cpp
	test_extrusion_entity.cpp
	test_extrusion_processor.cpp
	test_fill.cpp
	test_flow.cpp
	test_gcode_processor.cpp
	test_gcode_timing.cpp
	test_gcode.cpp
	test_gcodeprocessor.cpp
	test_gcodewriter.cpp
	test_imex_mode_gcode.cpp
	test_imex_slice_offset.cpp
	test_model.cpp
	test_multifilament.cpp
	test_perimeters.cpp
	# Seam geometry and pipeline regressions share the existing Print fixtures.
	test_precise_seam.cpp
	test_print.cpp
	test_printobject.cpp
	test_mixed_filament.cpp
	test_seam_placer.cpp
	test_skirt_brim.cpp
	test_slicing_pipeline_hook.cpp
	test_support_material.cpp
	test_texture_displacement.cpp
	test_tree_support.cpp
	test_trianglemesh.cpp
	test_wipe.cpp
	test_wipe_tower.cpp
	)
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r Catch2::Catch2WithMain)
set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")

orcaslicer_copy_test_dlls()

orcaslicer_discover_tests(${_TEST_NAME}_tests)
