How to Add Linux Compilation to Cmake Project in Visual Studio

后端 未结 2 1093
陌清茗
陌清茗 2020-12-17 01:16

Visual Studio has added lots of new features for C++ in the past year.

CMake With the CMake support, I can do \"Open Folder\" and select a folder w

2条回答
  •  死守一世寂寞
    2020-12-17 02:07

    It does not seem to work as you expect, yet. It seems you need to create separate linux vcproject for your existing cmake codebase. There is nothing like linux target in VS options. For more information see comments in this msdn blog.

    You may either create 'new linux project' and copy your sources or try (and adapt) using for existing sources these unofficial scripts: https://github.com/robotdad/vclinux

提交回复
热议问题