CMakeLists.txt 592 B

123456789101112131415
  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. target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
  8. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  9. if (WIN32)
  10. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  11. endif()
  12. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  13. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})