C++test will automatically extract options from the project (e.g., from its Makefile or Visual Studio configuration). You may also specify additional options that persist even when the Makefile or Visual Studio configurations change. These options can be specified at the project level or file level, and they can be specified for source files, standalone test suite files, and user-defined stubs.

To specify options at the project level:

  1. Right-click the project tree node for the project you want to specify settings for, then chooseProperties from the shortcut menu. The Properties dialog will open.

  2. Expand the Parasoft> C++test category in the left pane.
  3. Select the Build Settings category.

  4. Specify options in the Compiler options and/or Linker options fields.
  5. (Optional) If you want modify the directory where C++test looks for runtime headers and source files during analysis, modify the value in the Runtime library source field.
  6. Click Apply, then OK.

To specify options at the file level:

  1. Right-click the project tree node for the file for which you want to specify settings, then chooseProperties from the shortcut menu. The Properties dialog will open.

  2. Expand the Parasoft> C++test category in the left pane.
  3. Select the Build Settings category.
  4. Enable Use custom options.

  5. Specify options in the Compiler options field.
  6. Click Apply, then OK.