Question

I know about CMake and bakefile already, but that is not what I am looking for.

Is there a tool that will generate a makefile given a VC project? (or at least a first attempt at one) so I don't have to do all the work by hand?

Alternatively, is there a tool that makes CMake files?


Edit:

Following the link below leads me to this:

http://www.winehq.org/docs/winemaker

That is a great help. I have not tried it yet.

Was it helpful?

Solution

As of version 1.1.19, Wine (http://www.winehq.com/) allows you to do something like that. It includes a tool called "winemaker" which originally was intended to aid in porting Windows C/C++ sourcecode to Unix platforms. So, originally, it was mostly concerned with converting line endings, fixing lower/uppercase issues and forward/backward slashes. But as of version 1.1.19 it can also take a Visual Studio project (dsp,dsw,vcproj or sln) file as its input and create a Makefile.

OTHER TIPS

Sorry in advance for publicizing my own project...

I have an open-source project on Google code for this: http://code.google.com/p/make-it-so

It tries quite hard to convert various project types, and with any luck it will do what you want. If not, you can download the code and hopefully it will be a useful start.

At the moment (Jan 2012) it converts VS2008 and VS2010. C++ projects are converted to gcc makefiles. C# projects are converted to mono makefiles.

Take a look at this tool https://github.com/envi/vcxproj2cmake

It converts vc10 project to CMakeLists.txt file.

NOTE: It is not vcproj2cmake written in ruby its vcXproj2cmake written in perl. It can convert .vcxproj to simple standalone CMakeLists.txt file.

I am not aware of such a converter. There is however mpc that can create both makefiles and VC projects from the same mpc DSL.

supports multiple versions of make (GNU, Microsoft, Borland, Automake), Visual C++ 6.0 and Visual Studio 2003, 2005 and 2008.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top