• 5797阅读
  • 1回复

[提问]qmake 之INSTALLS [复制链接]

上一主题 下一主题
离线郑关耳
 

只看楼主 倒序阅读 楼主  发表于: 2012-12-17
CONFIG(release, release|debug)
{
    bin.path = ../bin
    bin.files = release/glueconsole.exe
    INSTALLS += bin
}
CONFIG(debug, release|debug)
{
    bin.path = ../bin
    bin.files = debug/glueconsole.exe
    INSTALLS += bin
}

以上代码,旨在当config设置为debug或release的时候,nmake install 从各自对应的目录中把文件拷贝到../bin。但实际上,不管config为什么,它总是拷贝debug里面的内容。请问行家如何解决。
离线realfan

只看该作者 1楼 发表于: 2012-12-17
左花括号要和CONFIG放在同一行,这样写试试
CONFIG(release, release|debug) {
    bin.path = ../bin
    bin.files = release/glueconsole.exe
    INSTALLS += bin
}
CONFIG(debug, release|debug) {
    bin.path = ../bin
    bin.files = debug/glueconsole.exe
    INSTALLS += bin
}
快速回复
限100 字节
 
上一个 下一个