【发布时间】:2015-12-14 13:31:02
【问题描述】:
如何使用 qmake 将编译后的二进制库文件放在多个路径中?我发现在 target.path 中指定多个路径会导致覆盖 Makefile 中的目标。是否可以使用 qmake 将安装到多个路径?
【问题讨论】:
如何使用 qmake 将编译后的二进制库文件放在多个路径中?我发现在 target.path 中指定多个路径会导致覆盖 Makefile 中的目标。是否可以使用 qmake 将安装到多个路径?
【问题讨论】:
已经解决了在 .pro 文件中添加这样的内容:
target1.path=$${PWD}/../relative/install/path/for/depependend/project/1
unix:target1.files=$${DESTDIR}/*.so*
win32:target1.files=$${DESTDIR}/*.dll
target2.path=$${PWD}/../relative/install/path/for/depependend/project/2
unix:target2.files=$${DESTDIR}/*.so*
win32:target2.files=$${DESTDIR}/*.dll
target3.path=$${PWD}/../relative/install/path/for/depependend/project/3
unix:target3.files=$${DESTDIR}/*.so*
win32:target3.files=$${DESTDIR}/*.dll
INSTALLS += target1 target2 target3
【讨论】: