[Qt-creator] Info how to add multiple RunConfigurations

Tobias Hunger tobias.hunger at gmail.com
Thu Oct 3 19:57:06 CEST 2019


Hi Filippo,

On Wed, Oct 2, 2019 at 11:31 PM Filippo Cucchetto
<filippocucchetto at gmail.com> wrote:
> i'm working for adding support to the Nimble build system for Nim but i'm struggling understanding how to add multiple RunConfigurations.
> To be honest i'm a little confused in how  Targets, Kits, BuildInfo, BuildConfigurations and BuildTargetInfo work together
> Honestly i thought that the missing piece fwas calling Target::setApplicationTargets() but it doesn't seems enough.

I just realized that I have no idea how that works nowadays:-) But I
think you are probably missing a RunConfigurationFactory that feels
responsible for your kind of project or something.

> So in my use case (one project with multiple executables being built (like a CMake project) what should i do?
> I though: one or more kit, each kit with one target, one target with multiple buildinfo e multiple, builtargetinfo.

You have a Project.

A project has a list of Targets.

Each Target has *exactly* and *always* one Kit (and each target will
have a different Kit), as well as a list of BuildConfigurations,
DeployConfigurations and RunConfigurations. Think of it as a bit of
glue that connects a Kit, the Project and the *Configurations. That's
all there is to it.

The Build-/DeployConfigurations hold a list of BuildSteps.

It's not that complicated:-)


More information about the Qt-creator mailing list