CMakeLists.txt 866 B

12345678910111213141516171819202122232425262728293031
  1. get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
  2. add_executable(${_TEST_NAME}_tests
  3. ${_TEST_NAME}_tests.cpp
  4. test_3mf.cpp
  5. test_clipper_offset.cpp
  6. test_clipper_utils.cpp
  7. test_config.cpp
  8. test_elephant_foot_compensation.cpp
  9. test_geometry.cpp
  10. test_placeholder_parser.cpp
  11. test_polygon.cpp
  12. test_stl.cpp
  13. test_meshsimplify.cpp
  14. test_meshboolean.cpp
  15. test_timeutils.cpp
  16. )
  17. if (TARGET OpenVDB::openvdb)
  18. target_sources(${_TEST_NAME}_tests PRIVATE test_hollowing.cpp)
  19. endif()
  20. target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
  21. set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
  22. if (WIN32)
  23. prusaslicer_copy_dlls(${_TEST_NAME}_tests)
  24. endif()
  25. # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
  26. add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})