A collection of helper probes for your Qbs projects.
This probe for Conan 2 runs conan install
before building the project.
- Qbs ≥ 2.4
- Conan ≥ 2.4
- Enable the conan provider in your project:
Project { qbsModuleProviders: ['conan'] }
- Set the install directory for it in all your products:
Unfortunately, this can't be done on a project level yet due to the QBS-1801.
moduleProviders.conan.installDirectory: project.buildDirectory
- Use it in your project. For example, like this:
import qbs.FileInfo import easy.probes as Easy Project { qbsModuleProviders: ['conan'] Easy.ConanInstall { id: conan conanfilePath: FileInfo.joinPaths(project.sourceDirectory, 'conanfile.py') compilerCppStd: 20 additionalArguments: ['--build=missing'] } }