Search code examples
qtqt-creatorqmakesubdirectory

qmake subdirs template run all app in the same time


I'm having root project:

TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += \
    AppTest \
    TestStub

Both AppTest & TestStub are app TEMPLATE. and make socket communication between each. The problem is the root project only can execute only one subproject.(execute one, another auto-closed)

Is possible execute both sequentially in build order?


Solution

  • You can change the settings in Tools > Options > Build&Run > General. There is an option "Stop applications before building". Select "None".

    QtCreator Settings

    This will prevent that QtCreator closes a running application when starting another application from the same project.

    Then you can start / debug one app, select the other app in the debug / run selector, and start the second. Both should be running then

    QtCreator Debug Project