Create a Referenced project

To create a referenced project B in project A, follow the steps given below:

  1. Select and right-click the project in the CodeWarrior Projects view.
  2. Choose Properties from the shortcut menu that appears.

    The Properties dialog appears.

  3. Select the C/C++ Build option on the left and click the References tab in the C/C++ Build properties page on the right.
  4. Select project B in the tree.
    Figure 1. C/C++ Build properties > References pane

    C/C++ Build properties > References pane

  5. Click OK to include Project B in Project A.
    Note: You can also create a project reference by dragging 'Project B' onto 'Project A' in the CodeWarrior Projects view.

The following table lists various options available in C/C++ Build > References page.

Table 1. C/C++ Build > References options
Option Description
Build referenced projects and build configurations when building this project If selected, enable building referenced projects and build configurations while building project. This option is also available from the CodeWarrior Projects view, by right-clicking on the `Referenced Projects' element.
Expand All Click to expand all referenced projects in the tree.
Collapse All Click to collapse all the referenced projects in the tree.
Move Up/Move Down Changes the referenced project build order. The first project shown will be built first.
Edit Location Allows you to change the location of referenced project. The project location is recorded automatically as a project-relative path, and can make use of the project path variables to be portable across machines
Build Projects referencing this build configuration Causes projects that include the current project as a referenced project to be included in the current build dependency, and be built when the current project is built.
Severity level for missing references projects build error makers Allows you to select Error or Warning to display severity level for missing references.
Restore Defaults Restores default factory settings
Apply Saves your changes without closing the dialog.
OK Saves your changes and close the dialog.
Cancel Closes the dialog without saving.