Files
EJM_Display/OpenCV-copy.pri
2025-09-28 17:14:34 +08:00

9 lines
337 B
Plaintext

#OpenCV-copy.pri
win32 {
OPENCV_BIN = $$PWD/D:/MyQtLibs/OpenCV_Install/x64/mingw/bin # 改成你的路径
DLL_SRC = $$OPENCV_BIN/*.dll
DLL_DST = $$OUT_PWD
# 用 $$system_path() 把路径转成当前系统分隔符
QMAKE_POST_LINK += $$quote(cmd /c copy /y $$system_path($$DLL_SRC) $$system_path($$DLL_DST))
}