【问题标题】:Multiple install paths for qmake INSTALLSqmake INSTALLS 的多个安装路径
【发布时间】:2015-12-14 13:31:02
【问题描述】:

如何使用 qmake 将编译后的二进制库文件放在多个路径中?我发现在 target.path 中指定多个路径会导致覆盖 Makefile 中的目标。是否可以使用 qmake 将安装到多个路径?

【问题讨论】:

    标签: qt makefile qmake


    【解决方案1】:

    已经解决了在 .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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-11
      • 2013-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多