1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
CppApplication { files: ["app.c"] property bool enableObjectiveC: qbs.targetOS.contains("darwin") Group { name: "C/C++" files: [ "test.c", "test.cpp", ] } Group { name: "Objective-C" condition: enableObjectiveC files: [ "test.m", "test.mm", ] } }