On 2015-02-16 10:30-0000 Phil Rosenberg wrote: > Hi Alan > I need to add wxPLViewer as a dependency of all examples and probably > some of the tests if wxWidgets is enabled. As this program is called > by the driver when I run an example, it clearly must be built to do > so. > > I have a feeling there is probably something close to a one line > solution in CMakeLists.txt in the examples folder, but I can't quite > spot it. I wondered if you could point me in the right direction.
Look at the last bit of logic in utils/CMakeLists.txt which I put in sometime fairly recently. Does that "add_dependencies(wxwidgets wxPLViewer)" command (which forces wxPLViewer to always be built before wxwidgets) already do what you want? 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); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); 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 __________________________ ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel