比如有一个新建项目需要使用到多个文件夹里的源代码,每个文件夹包括无数cpp和h文件,如何将这些代码添加到我的现有项目里?
认证0级讲师
Existing project added.
Create from existing code.
Also, drag the file directly into the solution. Folders are also available, however, other types of files will also be added. Ctrl-click to select multiple files at the same time. Also search VS to add source files in batches.
Open project, project, add existing item
Use CMake? You can refer to a CMakeLists I wrote recently:
https://github.com/district10/bcp/tree/standalone#3-modify-cmakeliststxt
Existing project added.
Create from existing code.
Also, drag the file directly into the solution.
Folders are also available, however, other types of files will also be added.
Ctrl-click to select multiple files at the same time.
Also search VS to add source files in batches.
Open project, project, add existing item
Use CMake? You can refer to a CMakeLists I wrote recently:
https://github.com/district10/bcp/tree/standalone#3-modify-cmakeliststxt