[CMake] autoconf to cmake conversion

Alexander Neundorf a.neundorf-work at gmx.net
Thu Nov 18 15:40:19 EST 2010


On Wednesday 17 November 2010, luxInteg wrote:
> Greetings,
>
> I am learning cmake.
>
> I am looking  for a tool to convert    a build system fom autoconf to
> cmake. II came across am2cmake available at
>  http://websvn.kde.org/trunk/KDE/kdesdk/cmake/scripts/
>
> It is very kde3 specific, I was wondering if there is  anything more
> generic available.

It may work somewhat also for non-KDE projects.
You may be able to remove the KDE specific stuff, and it should produce some 
skeleton.
The result will not be working CMakeLists.txt, but the boring translation work 
will have been done for you.

E.g. all the configure checks you have to convert yourself.
I usually take the config.h created from the autotools build and start adding 
the tests to the cmake files until the generated config.h are (basically) 
identical.

Alex


More information about the CMake mailing list