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
|
|
|
|
test_data.cpp
|
|
|
|
test_data.hpp
|
|
|
|
test_flow.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
|
|
|
|
test_printobject.cpp
|
2019-10-15 14:31:20 +00:00
|
|
|
test_skirt_brim.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")
|
|
|
|
|
|
|
|
# catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
|
|
|
|
add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests "--durations yes")
|