On 2009-05-12 12:33-0700 Alan W. Irwin wrote:

> Changed the subject line to something more appropriate.
>
> The current status of the new CMake-based build system for the installed
> examples is I have had a bit of extra time to play with it and have used
> that to add the C++, f77, f95, and D (!) examples builds (revision 9973).
> So this is already shaping up to be much more than a simple proof of concept.
>
> The new build-system works fine to build all those installed examples on my
> Debian Lenny platform, and I request others try it out as well to make sure
> there are no platform-dependent example build issues with this approach.
>
> For the next step I plan to add a custom target "test_noninteractive" (the
> "test" target is already taken by cmake) to run all the install-tree tests
> that are available (including test_diff.sh with its nice summary output)
> with appropriate dependencies for all the examples that are built.  For
> those who have access to hardware with more than one CPU and access to CMake
> generators that allow taking advantage of those multiple CPUs, this allows
> N-times faster testing (where N is the number of CPUs) than what is
> currently available in the build tree with the ctest approach.

This has been implemented as of 9977.  Here is how I use this in practice

After "make install" cd to the top-level installed examples tree.
Currently that is $prefix/share/plplot5.9.4/examples where $prefix is
the installation prefix you specified to your cmake command when building
PLplot.

Make an empty build directory and use it for the CMake-based build of
the installed examples.

rm -rf build_dir
mkdir build_dir
cd build_dir
cmake ..
make -j4 test_noninteractive

The result at the end is the standard summary of PostScript and Stdout
non-C language comparisons with the corresponding C results, i.e., the
standard test_diff.sh output you also get with ctest in the build tree.

I have done some dependency testing by "touching" certain source files, and
all seems well; only the minimal number of targets are rebuilt to get
the desired result.  (This dependency resolution is much better than what
is done for the alternative Makefile+pkg-config approach.)

I expect Windows users will have to fiddle with their PATH to get access
to the installed libraries located at $prefix/lib, but otherwise, I
am hoping this will just work as well on Windows as it currently does on
Linux for me.

The current status is only the C, Ada, C++, D, Fortran 77, and Fortran 95
languages are implemented and tested.  Eventually more languages will be
added until this new build system duplicates all the functionality of
the current Makefile+pkg-config approach for the installed examples.

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
__________________________

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to