1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
import qbs CppApplication { Depends { name: "Qt.quick" } cpp.cxxLanguageVersion: "c++11" Probe { id: qtQuickCompilerProbe property bool hasCompiler: Qt.quick.compilerAvailable configure: { if (hasCompiler) console.info("compiler available"); else console.info("compiler not available"); } } files: [ "main.cpp", "qml.qrc", ] }