Adding the pre-build and post-build steps

A build configuration can optionally execute pre-build steps and post-build steps. If you specify a pre-build command, it will be executed before the build tools are called. A post-build command will be executed right after the ELF file is created.

To add a post-build step to the build configuration:

  1. In the project properties, go to C/C++ Build > Settings and open the Build Steps tab.
  2. Select the build configuration in the Configuration field and specify the post-build command under Post-build steps:


    Add a post-build command

  3. Click Apply and close the dialog box.
  4. Build the project with the updated configuration. The Console view reports the execution of the post-build command.
Adding a pre-build step to a build configuration is similar, except you add your command under Pre-build steps.