CMakeLists.txt 783 B

12345678910111213141516171819
  1. get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
  2. add_executable(${_TEST_NAME}_tests ${_TEST_NAME}_tests_main.cpp
  3. sla_print_tests.cpp
  4. sla_test_utils.hpp sla_test_utils.cpp
  5. sla_supptgen_tests.cpp
  6. sla_raycast_tests.cpp
  7. sla_supptreeutils_tests.cpp
  8. sla_archive_readwrite_tests.cpp)
  9. # mold linker for successful linking needs also to link TBB library and link it before libslic3r.
  10. target_link_libraries(${_TEST_NAME}_tests test_common TBB::tbb TBB::tbbmalloc libslic3r)
  11. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  12. if (WIN32)
  13. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  14. endif()
  15. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  16. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})