CMakeLists.txt 579 B

1234567891011121314151617
  1. get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
  2. add_executable(${_TEST_NAME}_tests ${_TEST_NAME}_tests_main.cpp
  3. test_arrange.cpp
  4. test_arrange_integration.cpp
  5. ../data/prusaparts.cpp
  6. )
  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. set(_catch_args "exclude:[NotWorking] exclude:[Slow]")
  13. list(APPEND _catch_args "${CATCH_EXTRA_ARGS}")
  14. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${_catch_args})