To define a subproject

To organize your source code into logical units, use subprojects. A subproject is always a child project of a program or another subproject. The source files contained within a subproject are compiled and linked into its parent program; subprojects do not get built into executables. You define a subproject as a special type of build file (*.bld) that does not get built.

If your project uses sub-directories to organize your source code in your file system, you can create the subproject's build file in the appropriate sub-directory. This allows the Builder to look in the correct directory when you add source files to the subproject.

  1. Double-click the build file of the program or subproject that will contain the new subproject.
  2. Click Add ( ).
  3. In the file chooser, select a directory and enter the name of the build file for the new subproject. The subproject's build file needs to have a .bld extension. Normally, the subproject is located in the same directory as the source files contained within it.
  4. Click Add.
  5. Highlight the new subproject.
  6. Choose Project > Options for Selected Files....
  7. On the General tab, set the Type: field to Subproject.
  8. Click OK.

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.