NetBeans allows you to pass arguments to configure the script when creating a new C / C ++ project with existing sources. You can also edit the arguments and re-run the configure script if the project is already created.
Steps for passing arguments to configure the script when creating a new project:
- File β New Project
- Select C / C ++ Project with Existing Sources
- Click Next
- On the mode selection page, select the folder containing the existing source and configure the script.
- In the Select configuration mode: section, select Custom .
- Click "Next"
- On the Create Tool page, select Using the makefile generated by the 'configure' script
- Enter the arguments for configure script in the Configure Arguments field.
- Click the rest of the wizard to create a project.
- NetBeans runs a configure script with custom parameters and generates a Makefile when the wizard finishes.
To edit the parameters passed for configuration after creating the project:
- In the NetBeans project tree, expand the project, expand Important Files , right-click on configure script and select Properties
- Press the button ... on the line Arguments and edit the arguments.
- Click Close
- Right-click to configure the script and select run .
- NetBeans will run the configure script again with the new arguments and restore the Makefile.
Corey source share