[Kde-graphics-devel] checking libksane version

Robby Stephenson robby at periapsis.org
Thu Mar 19 14:56:08 CET 2009


On Wednesday 18 March 2009, Albert Astals Cid wrote:
> A Dimecres, 18 de març de 2009, Robby Stephenson va escriure:
> > Hi all,
> >
> > What's the best way to check which version of libksane is being used to
> > compile a program? The KSaneWidget::currentDPI() API is new, and if I
> > use it, I want to surround it with suitable version checks. I guess I
> > could check for KDE_IS_VERSION(4,3,0) but that doesn't seem right. Does
> > it need to be a cmake macro check?
>
> Probably, you can have a look at how okular poppler generator does it for
> poppler.
>
> http://websvn.kde.org:80/trunk/KDE/kdegraphics/okular/generators/poppler/
>CMakeLists.txt?revision=940958&view=markup

Perfect, that works great. Thanks!

Robby


More information about the Kde-graphics-devel mailing list