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
__________________________
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
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

---------- Forwarded message ----------
Date: Tue, 29 Sep 2009 09:44:43 -0400
From: "Nathaniel Waisbrot (Cont ARL/CISD)" <[email protected]>
To: Luigi Calori <[email protected]>
Cc: CMake Mailing List <[email protected]>
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:

ExternalProject_Add(tcl-8.4.19
   URL "${tarball}/tcl8.4.19-src.tar.gz"
   INSTALL_DIR ${prefix}
   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.



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to