1 2 3 4 5 6 7 8 9 10 11 12 13 14
import qbs 1.0 Project { property bool linkSuccessfully: false references: linkSuccessfully ? ["helper_lib.qbs"] : [] CppApplication { type: "application" Depends { condition: project.linkSuccessfully name: "helperLib" } files: "main2.cpp" } }