我用的一个,windows下的,4.13.2,新版本可能需要适当修改:
CONFIG(debug, debug|release) {
install_dir = $$OUT_PWD/debug
} else {
install_dir = $$OUT_PWD/release
}
install_dir ~= s,/,\\,g
install_files = $$PWD\\xxxx.dll
for (file, install_files) {
file ~= s,/,\\,g
QMAKE_POST_LINK += $$QMAKE_COPY_FILE $$shell_quote($$file) $$shell_q
uote($$install_dir) $$escape_expand(\\n\\t)
}
【 在 scanworld (臭蛋超人) 的大作中提到: 】
: 鼓捣一上午了 没成功
: 比如有多个第三方库 不需要设置环境变量path
: 只想在编译之后exe文件目录中同时有这不同第三方库的dll 比如qwt3dplot opencv
: ...................
--
FROM 222.128.5.*