Browse Source

One more fix to run unit tests on Windows: Missing DLLS need to be copied.

Vojtech Bubnik 3 years ago
parent
commit
7a2bd9023a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/slic3rutils/CMakeLists.txt

+ 4 - 0
tests/slic3rutils/CMakeLists.txt

@@ -9,5 +9,9 @@ if (MSVC)
 endif ()
 set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
 
+if (WIN32)
+    prusaslicer_copy_dlls(${_TEST_NAME}_tests)
+endif()
+
 # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
 add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests "${CATCH_EXTRA_ARGS} exclude:[NotWorking]")