2019-10-15 07:40:40 +00:00
|
|
|
get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
|
|
|
|
add_executable(${_TEST_NAME}_tests
|
|
|
|
${_TEST_NAME}_tests.cpp
|
2019-10-16 11:20:09 +00:00
|
|
|
test_3mf.cpp
|
2019-10-15 07:40:40 +00:00
|
|
|
test_geometry.cpp
|
2019-10-15 16:08:32 +00:00
|
|
|
test_polygon.cpp
|
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")
|