Add or remove targets

If the project backend supports it, you can add or remove targets in your project without editing the project file. A target groups files together. It is typically used to represent a program, with all its source files as its children.

Add a target

  1. Select the directory where you want to add the new target in the project view, click on the right mouse button to make the project context menu appear and select New Target.

    Or from the main menu, select Project ▸ New Target...

  2. You can select another directory in the bottom directory tree view.

    Enter a target name and select the type of the target in the drop-down list below. Depending on your project backend, various types of target are possible.

    Target names are typically restricted to letters, digits and the underscore, so it's safer to avoid other characters.

  3. When you have chosen the target name, type and parent, click on the Add button to create this new target.

Remove a target

  1. Select the target you want to remove in the project view, click on the right mouse button to make the project context menu appear and select Remove.

  2. Confirm the removal. The target and all its properties will be removed from the project file. All its files stay untouched on your hard disk.