Add a Source Directive
The Configuration section of the IDE workbook provides views and actions to add a
source directive to your configuration file.
To add a source directive to the top of the configuration file:
- To add a new source directive to the top of the configuration file, click mouse button 2
on the background of a Source and Groups, Targets, Source and Targets, or Options Groups
view to display a menu.
- Select Add Source.... If the ProjectOptions directive exists, the Add
source action will add the appropriate directive inside the ProjectOptions block, as the
first item in that block.
- Select the type of the source files that are included in the source directive from the Type
list.
- Type the name of a source file in the Source field, or click Find
to select one or more source files from your file system. 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.
- Ensure Use Relative Path is selected to add the source files with a
path name relative to the configuration file directory. When this option is not selected,
the source files are added with full path names.
- Click Add to add the files to the Files list.
- 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 Cancel to
exit the dialog box without adding the source directive.
- Click Apply. The new source directive is added to the configuration
file. To update the codestore and the other views in the IDE, you must build the project.
To add a source directive into an existing directive:
- Select a directive from any Configuration view it is displayed in. Click mouse button 2
over the directive to display a menu.
- Select one of the following options:
- Select Add Source after... to add a source directive after the
directive
- Select Add Source into... to add a source directive within a directive
that has a directive block.
A dialog box is displayed.
- Select the type of the source files that are included in the source directive from the Type
list.
- Type the name of a source file in the Source field, or click Find
to select one or more source files from your file system. 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.
- Ensure Use Relative Path is selected to add the source files with a
path name relative to the configuration file directory. When this option is not selected,
the source files are added with full path names.
- Click Add to add the files to the Files list.
- 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 Cancel to
exit the dialog box without adding the source directive.
- Click Apply. The new source directive is added to the configuration
file. To update the codestore and the other views in the IDE, you must build the project.

Add or Change Source Files Overview
Remove a Source or Group Directive
Set Build Options for the Project

source Configuration File Directive