In a subdir project, any way to only build the active subproject and its dependencies?
-
I have a subdirs project that looks like this:
TEMPLATE = subdirs SUBDIRS += app foo bar lib app.subdir = app foo.subdir = foo bar.subdir = bar lib.subdir = lib app.depends = libWhen the run configuration is set to
appand I press Command+B (or Control+B if I'm on Windows), it will go through and run the build process for all four subprojects. And since they share a lot of source files, often there's quite a bit of compilation to do for eitherfooorbar. However I don't need the build results forfooorbarin order to runapp, so the time spent trying to compile them, or even just analyze them to see if anything needs compiling, only delays me.So is there any way I can have Qt Creator only build what's necessary to run whichever subproject is selected as the run configuration, when I type the keyboard shortcut to build or run?
I've found I can right-click one of the subprojects and tell just that to build, but a) that doesn't build any dependencies, and b) I haven't found any way to assign that to a keystroke.
-
G Guy Gizmo has marked this topic as solved on