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
|
2019-10-25 11:34:37 +00:00
|
|
|
test_clipper_offset.cpp
|
2019-10-25 15:07:55 +00:00
|
|
|
test_clipper_utils.cpp
|
2019-10-18 09:53:19 +00:00
|
|
|
test_config.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
|
2019-10-18 11:05:22 +00:00
|
|
|
test_stl.cpp
|
2020-05-28 13:53:53 +00:00
|
|
|
test_meshsimplify.cpp
|
|
|
|
test_meshboolean.cpp
|
|
|
|
test_marchingsquares.cpp
|
|
|
|
test_timeutils.cpp
|
|
|
|
test_voronoi.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})
|