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:
- Select a source or group directive in the Targets view.
- 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.
- 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.
- Click Add to add the file to the Files list. The Files
list is updated.
- 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.
- 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:
- Select the source or group directive in the Targets view that contains the file you want
to change or remove.
- From the Files list, select a file.
- 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.
- Click Change or Remove to change or remove the file.
The Files list is updated.
- 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