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-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On
> Behalf Of Paul Dean
> Sent: Tuesday, December 07, 2010 14:14
> To: cmake@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
> p...@pdcomputertech.com
> aquawic...@hotmail.com
> 
> 
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to