VC2010 C++ - organizing source files

后端 未结 5 1227
予麋鹿
予麋鹿 2020-12-12 10:35

I had some questions about how to organize source files in a VC 2010 C++ project. The default filters that are included won\'t be sufficient as ultimately, I\'m going to hav

5条回答
  •  庸人自扰
    2020-12-12 11:11

    Using a build system such as CMake or Premake could help when organizing files, and it has the added benefit of helping you port your code to other platforms. Here is a good presentation on the subject.

    As it might be of help to someone, I should also add that having your source files separate from your project file (*.vcxproj) makes it more difficult to create new files, as Visual Studio by default want to create new files in the same folder as your project. The workaround to this problem that I've found so far is to use the Visual Assists extension, as it allows adding new files relative to the directory or your currently open file. See this post for further explanation.

提交回复
热议问题