CMakeLists.txt 1011 B

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