Run CMake targets before launch
CMake targets can be executed automatically before the launch of a run/debug configuration. This covers both the built-in CMake targets like
clean and the targets specified via
Go to CMake Application or a test configuration to edit.and select a
In the Before launch area, click and select CMake Target:
In the dialog that opens, select the desired target:
Save the settings. Next time you run or debug this configuration, the specified target will be executed before launch.
Last modified: 29 October 2021