[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Assigning Files to Build Targets

You can use several techniques to assign files to build targets. This section describes the most common techniques:


Using the Target column

The Target column in the Project window's Files view indicates whether a file belongs to the current build target. The IDE displays this column only if the project has more than one build target. A file that belongs to the current build target has a marker in the Target column.

To assign a file to the active build target, click in the Target column beside that file to place a marker. Click an existing marker to exclude a file from the active build target.

You can also toggle assignment of all files at the same time to the current build target. Use one of the following techniques:


Windows, Solaris, and Linux

Alt-click in the Target column.


Mac OS

Option-click in the Target column.


Using the Project Inspector

You can use the Project Inspector to assign a file to various build targets.

To use the Project Inspector, follow these steps:

1. Select the file in the Project window that you wish to assign to build targets.

See "Selecting Files and Groups" for more information.

2. Open the Project Inspector.

Use the appropriate menu command:

For more information about menu bar layouts, see "Menu bar layout".

3. Click the Targets tab in the Project Inspector to display the Targets view.

Figure 3.23 shows the Targets view of the Project Inspector.

4. Configure checkboxes as desired to assign the file to the build targets.

The Targets view shows the build targets to which you can assign the file. Enable the checkbox next to a build target to assign the file to that build target. Disable the checkbox next to a build target to exclude the file from that build target.

5. Click Save.

The IDE saves the file assignments. Click Revert to undo your changes and restore the original assignments.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000