File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,18 +22,6 @@ target_link_libraries(Graph_Build BuildGraph)
2222add_executable (ACC acc_check.cpp )
2323target_link_libraries (ACC BuildGraph )
2424
25- if (WIN32 )
26- add_custom_command (TARGET Graph_Build POST_BUILD
27- COMMAND ${CMAKE_COMMAND } -E copy_directory
28- "${OPENCV_BUILD_DIR} /bin/."
29- "${CMAKE_BINARY_DIR } /bin/" )
30-
31- add_custom_command (TARGET ACC POST_BUILD
32- COMMAND ${CMAKE_COMMAND } -E copy_directory
33- "${OPENCV_BUILD_DIR} /bin/."
34- "${CMAKE_BINARY_DIR } /bin/" )
35- endif ()
36-
3725file (DOWNLOAD
3826 "https://raw.githubusercontent.com/DeepTrackAI/MNIST_dataset/main/mnist/test/1_000008.png"
3927 "${CMAKE_SOURCE_DIR } /docs/input/28/test1.png"
Original file line number Diff line number Diff line change @@ -21,3 +21,10 @@ execute_process(
2121 COMMAND ${CMAKE_COMMAND } --build "${OPENCV_BUILD_DIR} " --config "${CMAKE_BUILD_TYPE } "
2222 WORKING_DIRECTORY "${OPENCV_BUILD_DIR} "
2323)
24+
25+ if (WIN32 )
26+ file (GLOB OPENCV_DLLS "${OPENCV_BUILD_DIR} /bin/*.dll" )
27+ if (OPENCV_DLLS)
28+ file (COPY ${OPENCV_DLLS} DESTINATION "${CMAKE_BINARY_DIR } /bin" )
29+ endif ()
30+ endif ()
Original file line number Diff line number Diff line change @@ -15,10 +15,6 @@ target_include_directories(run_test PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
1515target_include_directories (run_test PRIVATE "${CMAKE_SOURCE_DIR } /app/ReaderImage" )
1616
1717if (WIN32 )
18- add_custom_command (TARGET run_test POST_BUILD
19- COMMAND ${CMAKE_COMMAND } -E copy_directory
20- "${OPENCV_BUILD_DIR} /bin/."
21- "${CMAKE_BINARY_DIR } /bin/" )
2218 add_custom_command (TARGET run_test POST_BUILD
2319 COMMAND ${CMAKE_COMMAND } -E copy
2420 $<TARGET_FILE :dnnl >
You can’t perform that action at this time.
0 commit comments