- With the project open in the Vitis
IDE, to add source files, right-click the src folder in the Project
Explorer, and click Import
Sources. This displays the Import Sources dialog box shown in the following figure.
- In the dialog box, for the From directory field, click the Browse button to select the directory from which you will import sources.
- In the Into folder field, make sure the folder specified is the src folder of the project.
- Select the desired source files by enabling the check box next
to the file name, and click Finish.
Important: When you import source files into a workspace, it copies the file into the workspace. Any changes to the files are lost if you delete the workspace.
After adding source files to your project, you are ready to begin configuring, building, and running the application. To open a source file in the built-in text editor, expand the src folder in the Project Explorer and double-click on a specific file.