[CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

Convey, Christian J CIV NUWC NWPT, B-171 christian.convey at navy.mil
Tue Dec 7 14:25:04 EST 2010


Funny timing - I just did that today, at least in a crude manner.

Long story short: On Unix/Linux/Mac, you can use the command-line tools (grep, sed, cut, xargs, etc.) to get the list of all source file that comprise the solutions' projects.  If your needs aren't too fancy, it's pretty trivial to make a simple CMakeLists.txt file out of that list of files.

Granted it's just a start, but my point is, it may not me as tough of a nut to crack as you fear, at least for relatively simple projects.

> -----Original Message-----
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On
> Behalf Of Paul Dean
> Sent: Tuesday, December 07, 2010 14:14
> To: cmake at cmake.org
> Subject: [CMake] Creating CMakeLists files from Solutions,Projects and
> Makefiles
> 
> I've been using CMAKE for a few years now and I absolutley LOVE it.
> It makes my life as a programmer so much easier to be able to generate
> project files on any platform.
> 
> What hurts is doing the reverse.  I can't count how many hours I've
> spent converting Solutions, Projects and Makefiles into CmakeLists
> files.
> 
> I think if CMAKE could generate CMakeLists files from Solutions,
> Projects and Makefiles, it would be the ULTIMATE make system.
> Just think. Any time you run into some sorcecode that does not have a
> CMakeFile, you could generate it from the Makefile or Project.
> 
> I can't imagine any programmer that would not love that ability.  I
> think it would be something great to add to CMAKE.
> What are everyones thoughts on that?
> 
> Paul Dean
> I.T. Professional
> 714-341-4519
> Paul at PDComputerTech.com
> aquawicket at hotmail.com
> 
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5218 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101207/58206e8a/attachment-0001.bin>


More information about the CMake mailing list