最佳答案
我正在开发一个开源的 C + + 项目,用于在 Linux 和 Windows 上编译代码。我使用 CMake 在 Linux 上构建代码。出于开发设置和政治方面的原因,我必须坚持使用 Windows 上的 Visual Studio 项目文件/编辑器(例如,我不能切换到 密码: : 积木)。我看到了使用 CMake 生成 VisualStudio 文件的说明,如 给你。
您以前使用过 CMake 生成 VisualStudio 文件吗?你的经历如何?假设我想向我的项目添加一个新文件。这样做的工作流程是什么?