配置Visual Studio Project,将生成的类放入源目录

时间:2018-08-24 09:46:48

标签: visual-c++ visual-studio-2013 configuration cmake code-generation

我们正在使用cmake来配置我们的项目,并使每个团队成员的配置过程尽可能地简单。 该项目本身完全面向Windows,并且是ATLMFC的组合。
现在,在项目的规范化过程中,我们通知了在Visual Studio中使用类向导时遇到的一些困难。每次生成控件类时,都会将该类放置在构建目录(cmake将解决方案(.sln.vcxproj文件放入其中的目录)中。

---+project-root-dir
   +---build
   |   \---<project>     #where the .vcxproj and generated sources are put somehow
   \---<project>         #repo - where the sources are organized usually

是否可以通过配置cmake使Visual Studio知道将(生成的)源文件放在哪里?
我猜这不过是Visual Studio的路径配置问题。 仅供参考:我使用的是VS13,编程语言是(视觉)c ++

0 个答案:

没有答案