[QBS] How to add cpp files but not to be compiled?

Joerg Bornemann joerg.bornemann at digia.com
Mon Oct 14 10:05:53 CEST 2013


On 11/10/2013 18:49, 罗勇刚(Yonggang Luo)  wrote:

 > How to add cpp files but not to be compiled?

Put them in a group and give them some file tag that the compiler rule 
doesn't understand:

files: ["myfile.cpp"]
Group {
     files: ["do_not_compile.cpp"]
     fileTags: ["example_source_code"]
}

-- 
Joerg Bornemann
Digia, Qt
http://qt.digia.com/




More information about the Qbs mailing list