2019-10-15 07:40:40 +00:00
|
|
|
get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
|
2019-10-15 09:28:20 +00:00
|
|
|
add_executable(${_TEST_NAME}_tests
|
|
|
|
${_TEST_NAME}_tests.cpp
|
2022-06-09 07:22:40 +00:00
|
|
|
test_clipper.cpp
|
2019-10-15 09:28:20 +00:00
|
|
|
test_data.cpp
|
|
|
|
test_data.hpp
|
2019-10-17 17:09:24 +00:00
|
|
|
test_extrusion_entity.cpp
|
2019-10-16 15:43:43 +00:00
|
|
|
test_fill.cpp
|
2019-10-15 09:28:20 +00:00
|
|
|
test_flow.cpp
|
2019-10-25 16:23:42 +00:00
|
|
|
test_gcode.cpp
|
2022-01-07 11:23:15 +00:00
|
|
|
test_gcodefindreplace.cpp
|
2019-10-15 15:35:19 +00:00
|
|
|
test_gcodewriter.cpp
|
2019-10-16 09:16:50 +00:00
|
|
|
test_model.cpp
|
2019-10-16 11:20:09 +00:00
|
|
|
test_print.cpp
|
2019-10-16 13:40:09 +00:00
|
|
|
test_printgcode.cpp
|
2019-10-16 11:20:09 +00:00
|
|
|
test_printobject.cpp
|
2019-10-15 14:31:20 +00:00
|
|
|
test_skirt_brim.cpp
|
2019-10-17 15:09:15 +00:00
|
|
|
test_support_material.cpp
|
2019-10-15 11:49:28 +00:00
|
|
|
test_trianglemesh.cpp
|
2019-10-15 09:28:20 +00:00
|
|
|
)
|
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-06-27 06:44:13 +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})
|