Change a Target's Source Files

You can add, change, and remove source files from a target directive using the Change Source and Groups view on the Targets page of the Configuration section. The Change Source and Groups view is displayed when you select a source directive in the Targets view.

To add a source file to a target directive:

  1. Select a source or group directive in the Targets view.
  2. In the Change Source and Groups view, type the file name of the source file in the Source entry field, or click Find to select files from your file system. In the Find dialog, you can select multiple files by holding down the Ctrl key and selecting the files with mouse button 1.
  3. Ensure Use Relative Path is selected to add the source file with a path relative to configuration file directory. If you do not select this option, the source will be added with a full path name.
  4. Click Add to add the file to the Files list. The Files list is updated.
  5. To change or remove a file from the Files list, select the file and click Change or Remove. If you want to undo the selections you have made, click Reset.
  6. Click Apply to save the change to the configuration file. To update the other views in the IDE, you must build the project.

If the target directive has no source directives, then you need to create one. Right-click on the target and select Add Source into.... The Add Source into... dialog creates the source directive and allows you to specify source files for it.

To change or remove a file from a target directive:

  1. Select the source or group directive in the Targets view that contains the file you want to change or remove.
  2. From the Files list, select a file.
  3. If you are changing the file name, make the changes in the Source field. You can also change whether or not a relative path is used to specify the file. If the file name is not enclosed in quotes or does not have a file extension, then it is assumed to be a variable which must be already defined in the configuration file.
  4. Click Change or Remove to change or remove the file. The Files list is updated.
  5. Click Apply to save the change to the configuration file. To update the other views in the IDE, you must build the project.


Add or Change Targets Overview
Add or Remove a Target
Change a Target's Name or Type
Add a Source Directive
Search a View Using Live Find


target Configuration File Directive