The New C/C++ Project With Existing Sources wizard enables you to create a project using an existing makefile.
In the Source Files page, you select the folders that contain the source files associated with your project. The page automatically lists the folder that contains the existing makefile.
To add a source folder to your project:
To remove a source folder from your project:
Exclude Pattern. Specifies any folders in the source directory that you do not want the IDE to use for source files. Type POSIX-style regular expressions to specify the files you want the IDE to ignore. The IDE provides the default pattern ^(nbproject|build|test|tests)$ to exclude files in these folders. You can add other folders to this pattern.
If the existing sources have test files that you want to include in the project, you can remove the test|tests folders from the Exclude Pattern.
You can also add the folders to the project using the Add Folders button.