Suppose you would like to launch multiple Run/Debug configurations simultaneously. For example, you may want to run several configurations of different types or a sequence of several test configurations. You can configure this behavior with a compound Run/Debug configuration.
You can choose the desired CMake profile for a configuration that you are going to add to the compound Run/Debug configuration. If you don't choose a CMake profile, CLion uses the default one. You can select the profile in or from the Run/Debug configuration switcher:
When you run or debug your code using a compound configuration, you actually launch a sequence of configurations it includes in the order they are listed.
Create a compound Run/Debug configuration
Open the Run/Debug configurations dialog. You can access it from the main menu or using the run configuration switcher on the toolbar.
In the dialog that opens, click and select Compound from the Add New Configuration menu.
To include a new Run/Debug configuration into compound configuration (and choose the desired CMake profile for it), click and select the desired one from the list. Then select the preferred CMake profile: