cURL / Mailing Lists / curl-library / Single Mail

curl-library

Curl and CMake (Was configure dilemmas)

From: Andy Cedilnik <andy.cedilnik_at_kitware.com>
Date: 10 Mar 2003 16:50:24 -0500

Hi All,

We use Curl in CMake for the last couple of months and it works great.

For those of you who do not know CMake, it is a cross platform build
tool. Sort of replacement for Autoconf/Automake, except that it can
generate Makefiles for Borland Bcc5.5 and NMake (Visual studio 6 and 7)
and it can also generate project files for Visual Studio 6 and 7. It
does all sorts of things, such as allowing out of source build, parallel
build, nice dependency control...

I played around and wrote CMake TRY_COMPILE and TRY_RUN's so that it
builds on a variety of platforms. You can see the list here:

http://public.kitware.com/dashboard.php?name=cmake

Also, the input file for CMake (CMakeLists.txt) for libcurl can be seen
here:

http://www.cmake.org/cgi-bin/cvsweb.cgi/CMake/Source/CTest/Curl/CMakeLists.txt?rev=1.18&cvsroot=CMake

Since we already have CMake input files for libcurl, it would be fairly
easy to make whole Curl to build using CMake. This would be a great
benefit especially for all those Windows users, who do want to build
from sources. And of course CMake can do TRY_COMPILE and TRY_RUN on
Windows.

It would also be a benefit to Unix users who do not wish to have
Autoconf/Automake on their system.

The drawback is that you would have to install CMake. This is however
extremely easy. On Most systems you just download binary and you are
done. On some rare systems you might have to build it.

So, let me know what you think.

                                Andy

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-03-10