On 2007-02-05 09:59+0100 Werner Smekal wrote: > Hi, > > we are using cmake for building plplot, but what about if you want to use > plplot for your own programs using cmake? Sure, you use FindPLplot.cmake > which has yet to be written. > > I attach a first version which should work for all platforms, but needs to be > changed to use pkg-config for Linux and OSX. Also I didn't include all > libraries (plplot_canvas, etc). I think we should somehow put it in cvs and > make it available to the cmake team (hopefully they include it). > > Where should I put it? cmake/external wouldn't be the right place and > cmake/modules would also be wrong. Who could help me (Alan :) to make the > script perfect?
I think the obvious place is the cmake directory itself so I have committed it there. Although cmake/modules and cmake/external are reserved for modules that are used in the PLplot build, we don't need to enforce that limitation for the cmake directly itself. I suggest you use the pkg_check_modules macro when you add the pkg-config capabilities to FindPLplot.cmake. My experience with libLASi shows the pkg_check_modules macro (in FindPkgConfig.cmake which is currently in CMake cvs) is far superior to the deprecated (in CMake cvs at least) pkgconfig macro which is why I intend to use pkg_check_modules for all new work from now on. I also intend to convert PLplot to use pkg_check_modules so that is why I have recently committed (as a temporary measure until FindPkgConfig.cmake is released as part of a normal CMake release) FindPkgConfig.cmake into cmake/modules. The FindPLplot.cmake users will also have to take a temporary measure like that, but it will be worth it. Thanks very much for thinking of making a FindPLplot.cmake module. It should prove most helpful to other projects with CMake build systems. 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 Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel