The New Project Wizard helps you manually create a C/C++ project and add it to an
application.
About this task
When you add a new C/C++ project to the application, you
specify a collection of source files to scan:
include
path
- preprocessor definitions
- options
The steps in this topic direct you
to complete all pages in the New Project Wizard (or New Application
Wizard, if you are creating the project in it). However, some of the
pages in the wizard are optional (required settings are complete when
the Finish button is activated). Settings made
in the wizard can be modified after project creation in the Properties view for
a selected project. If you complete the New Project Wizard
without completing optional pages, you can change the settings from
those pages later on in the Properties view.
Important: In order to scan a C++ project, the project must
compile and link without errors.
Procedure
-
In the Explorer view, select the application that you want to add the project
to (if you have not already added an application, see Configuring applications).
-
Complete one of these actions to open the New Project Wizard:
-
Select from the main workbench menu.
-
Right-click the selected application and choose from the context menu.
- In the Select Project Type page of the wizard, select C/C++ as
the project type and then click Next to advance
to the next wizard page.
- In the Project Sources wizard page:
- Identify the project sources. Project sources consist
of the directories in which you find project files, and any additional
individual files to include in the project.
Name the
project and specify the working directory. The Working
Directory is the location in which the AppScan®
Source project
file (.ppf) will reside. It is also the base
for all relative paths.
- Click Add Source Root to specify
a source code root and the directories or files to include or exclude
from the scan.
After adding the source root, you can exclude
certain directories or files from it. To do this, select the directory
or file (or multiselect these items) in the source root, right-click
the selection, and then choose Exclude from
the menu. If you include or exclude files, the icon to the left of
the file name changes.
- Click Next to advance
to the next wizard page.
- In the C/C++ Project Dependencies page, add project dependencies
by specifying the project configuration and
include
path.
- Click Finish.