Home  >  Q&A  >  body text

c++ - VS2012如何将一些现有代码添加到新项目里?

比如有一个新建项目需要使用到多个文件夹里的源代码,每个文件夹包括无数cpp和h文件,如何将这些代码添加到我的现有项目里?

PHP中文网PHP中文网2715 days ago620

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-17 13:45:17

    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.

    reply
    0
  • 阿神

    阿神2017-04-17 13:45:17

    Open project, project, add existing item

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 13:45:17

    Use CMake? You can refer to a CMakeLists I wrote recently:

    https://github.com/district10/bcp/tree/standalone#3-modify-cmakeliststxt

    reply
    0
  • Cancelreply