From Visual Studio projects to CMake projects

I have a bunch of projects setup in Visual Studio 2008. However, from what I've done to maintain my code projects, it is not a good way to.

I've known that those projects would be maintained in a much better way with CMake (CMake files) and just the code files (cpp, h).

So... Is there a type of conversion from my Visual Studio project files to CMakeLists.txt and other CMake files neccessary to rebuild my projects? Or I would have to write the CMakeLists.txt and other files for every project again?


I don't think that there is way of automagically converting between VS and CMake.

IMO you should create one project as a template (possibly with macros to do your common tasks) and then convert the rest of your projects when you have one that is working.

链接地址: http://www.djcxy.com/p/58262.html

上一篇: 如何将我的自定义类加载器设置为默认?

下一篇: 从Visual Studio项目到CMake项目