Add Source Files - 2021.1 English

Vitis Unified Software Platform Documentation: Application Acceleration Development (UG1393)

Document ID
UG1393
Release Date
2022-03-29
Version
2021.1 English
  1. 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.

  2. In the dialog box, for the From directory field, click the Browse button to select the directory from which you will import sources.
  3. In the Into folder field, make sure the folder specified is the src folder of the project.
  4. 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.