CMakeLists.txt 500 B

12345678910
  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_raycast_tests.cpp)
  6. target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
  7. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  8. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  9. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})