如何支持vcxproj到项目的cmake? [英] How to support both vcxproj to cmake on a project?

查看:2543
本文介绍了如何支持vcxproj到项目的cmake?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发跨平台c ++项目。最初的想法是使用msvc2010和以后编译为其他系统与CMake和哈德森的帮助。
在工作室设置更改后手动更改CMake文件似乎不方便。

I'm developing cross-platform c++ project. The original idea is to work with msvc2010 and later compile for other systems with the help of CMake and Hudson. It doesn't seem to be convenient manually change CMake files after changes in studio settings.

因此,最简单的方法是:为vcxproj编写解析器, vcxproj.filters,还是有另一个好的解决方案?

So, what’s the easiest way: to write parser for vcxproj and vcxproj.filters, or there is another good solution?

推荐答案

这可能是有用的,的转换,说移植。在我的旅行中,我找到了以下,没有特定的顺序:

It might be useful, from time to time, to do this type of conversion, say for porting. On my travels I've found the following, in no particular order:


  • vcproj2cmake

  • vcxproj2cmake (不是拼写错误!)

  • gypify.py 是一个.sln /解决方案读取 Gyp 文件生成器。 Gyp是一种Cmake替代方案,目前正由Chromium项目使用(Google Chrome浏览器基础)。 Gyp将输出Makefile,Visual Studio或XCode构建文件(参见Gyp的'-f [make | scons | msvc | xcode]'开关)。这个Python脚本是非常有前途的,我希望很快修改它正确地为gcc的'-I'包含参数指定包含头文件夹。

  • vcproj2cmake
  • vcxproj2cmake (not a typo!)
  • gypify.py is a .sln/solution-reading Gyp file generator. Gyp is a Cmake alternative, currently being used by the Chromium project (base for Google's Chrome browser). Gyp will output Makefile, Visual Studio or XCode build files (see Gyp's '-f [make|scons|msvc|xcode]' switch). This Python script is quite promising, I'm hoping to modify it soon to correctly specify header-containing folders for gcc's '-I' include parameter.
  • Make It So Converts Visual Studio solutions to Linux gcc makefiles
  • sln2mak C# project
  • sln2mak Perl script
  • GUCEF Project includes the ProjectGenerator tool, for Cmake
  • gencmake (ruby) – KDE Project
  • 'pbtomake' says it can convert XCode xcodeproj/pbproj files to Makefiles (maybe outdated)

干杯

丰富

这篇关于如何支持vcxproj到项目的cmake?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆