[CMake] CMake example for Qt console application (without GUI)

Reinhard Thies Reinhard.Thies at web.de
Mon Sep 12 08:57:13 EDT 2011


On Monday 12 September 2011 10:26:44 Alan W. Irwin wrote:
> On 2011-09-12 09:04+0200 Reinhard Thies wrote:
> > Hello,
> > 
> > I am looking for a cmake example for a Qt console application.
> > Are there any ?
> 
> Sure.  PLplot has a CMake-based build system which we use (among many
> other things) to configure one of the PLplot device drivers called qt.
> That device driver implements 11 different plot devices.  One of those
> is an interactive GUI, but a lot of them can be run directly from the
> command line (if that is what you mean by a Qt console application).
> For example, our pngqt device driver creates a PNG plot file from the
> command-line by combining the capabilities of the PLplot principal
> library with Qt4 capabilities, and similarly for our epsqt, pdfqt,
> svgqt, etc., drivers.
> 
> I suspect others can come up with much simpler examples, but if not
> contact me off list if you have further questions about the PLplot
> build-system, and how it configure linking with Qt4 for both
> interactive GUI and noninteractive file device drivers.
> 
> 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
> __________________________
Thanks,

I'll have a look on it

-- Reinhard


More information about the CMake mailing list