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:

  1. 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.
  2. 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.
  3. Select the type of the source files that are included in the source directive from the Type list.
  4. 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.
  5. 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.
  6. Click Add to add the files to the Files list.
  7. 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.
  8. 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:

  1. Select a directive from any Configuration view it is displayed in. Click mouse button 2 over the directive to display a menu.
  2. Select one of the following options:

    A dialog box is displayed.

  3. Select the type of the source files that are included in the source directive from the Type list.
  4. 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.
  5. 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.
  6. Click Add to add the files to the Files list.
  7. 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.
  8. 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