84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
比如有一个新建项目需要使用到多个文件夹里的源代码,每个文件夹包括无数cpp和h文件,如何将这些代码添加到我的现有项目里?
认证0级讲师
现有工程添加 。
从现有代码创建。
还有 把文件直接往 解决方案 里面拖进去。文件夹也可以,不过,其它类型的文件也会被添加。按住 Ctrl 点击可以同时选择多个文件。还有去搜索 VS 批量添加源文件 。
打开工程,项目,添加现有项
用 CMake?可以参考我最近写的一个 CMakeLists:
https://github.com/district10/bcp/tree/standalone#3-modify-cmakeliststxt
现有工程添加 。
从现有代码创建。
还有 把文件直接往 解决方案 里面拖进去。
文件夹也可以,不过,其它类型的文件也会被添加。
按住 Ctrl 点击可以同时选择多个文件。
还有去搜索 VS 批量添加源文件 。
打开工程,项目,添加现有项
用 CMake?可以参考我最近写的一个 CMakeLists:
https://github.com/district10/bcp/tree/standalone#3-modify-cmakeliststxt