我对.pro文件具有以下脚本,可将文件从源代码复制到已编译的文件。我正在使用Qt5.9.7。我该怎么办
win32 {
CONFIG(*.db3) {
configSRP.path =
$$shell_path($$dirname(OUT_PWD)/bin/resources/srp/db)
configSRP.files +=
$$shell_path($$IN_PWD/../resources/srp/db/*.db3)
}
else {
configSRP.path
=$$shell_path($$dirname(OUT_PWD)/bin/resources/srp/db/patch_dbs)
configSRP.files +=
$$shell_path($$IN_PWD/../resources/srp/db/patch_dbs/*.sql)
}
}
unix {
CONFIG(*.sql) {
configSRP.path =
$$shell_path($$dirname(OUT_PWD)/bin/resources/srp/db/patch_dbs)
configSRP.files +=
$$shell_path($$IN_PWD/../resources/srp/db/patch_dbs/*.sql)
}
else {
configSRP.path =
$$shell_path($$dirname(OUT_PWD)/bin/resources/srp/db)
configSRP.files += $$shell_path($$IN_PWD/../resources/srp/db/*.db3)
}
}
在Linux上构建时可以使用但是当我在Windows上构建时它不起作用