I have excerpted a message from the CMake list below concerning an
interesting new feature to look forward to once CMake-2.8.0 is released.
With this feature, we could add options for adventurous developers
such as BUILD_TK_TCL, etc.
Note, we are just at RC1 in the series of release candidates leading up to
CMake-2.8.0, and I haven't yet attempted a build of PLplot with RC1.
Furthermore, from past experience of the many release candidates typically
used by the CMake development team it will probably be many months before
CMake-2.8.0 final is released. So I emphasize the above idea for using the
new external_project_add feature is somewhat speculative at this point.
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
---------- Forwarded message ----------
Date: Tue, 29 Sep 2009 09:44:43 -0400
From: "Nathaniel Waisbrot (Cont ARL/CISD)" <nathaniel.waisbrot@...>
To: Luigi Calori <l.calori@...>
Cc: CMake Mailing List <cmake@...>
Subject: Re: [CMake] CMake 2.8.0 RC 1 ready for testing!
>> - New External Project Module. The 'ExternalProject_Add' function
>> creates a custom target to drive download, update/patch, configure,
>> build, install and test steps of an external project.
Here's an example of building Tcl as an ExternalProject. I haven't
tried this with 2.8 (just 2.7), but I expect it's the same:
CONFIGURE_COMMAND <SOURCE_DIR>/unix/configure --prefix=<INSTALL_DIR>
This creates a CMake target named "tcl-8.4.19". When the target needs
to be built, it untars the tarball, configures it with the given
command, and then runs "make" and "make install".
The argument list is pretty long and complex, so you'll want to read
through that, but any Gnu-style project with instructions like
"./configure;make;make install" should be easy.