This commit is contained in:
朱子楚\zhuzi
2023-03-17 23:33:02 +08:00
parent 5f71ad57d0
commit 0d6b0d9d25
3 changed files with 7 additions and 4 deletions

View File

@ -28,11 +28,14 @@ CONFIG(debug,debug|release) {
win32 {
!exists($$DESTDIR) {
mkpath($$DESTDIR)
}
contains(QT_ARCH, i386) {
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/bin/*.dll) $$DESTDIR
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR
QMAKE_POST_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\)
} else {
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/bin/*.dll) $$DESTDIR
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/*.dll) $$DESTDIR
QMAKE_POST_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\)
}