checking libksane version

View: New views
3 Messages — Rating Filter:   Alert me  

checking libksane version

by robbystephenson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Thanks,
Robby
_______________________________________________
Kde-graphics-devel mailing list
Kde-graphics-devel@...
https://mail.kde.org/mailman/listinfo/kde-graphics-devel

Parent Message unknown Re: checking libksane version

by Albert Astals Cid :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Albert

>
> Thanks,
> Robby
> _______________________________________________
> Kde-graphics-devel mailing list
> Kde-graphics-devel@...
> https://mail.kde.org/mailman/listinfo/kde-graphics-devel



_______________________________________________
Kde-graphics-devel mailing list
Kde-graphics-devel@...
https://mail.kde.org/mailman/listinfo/kde-graphics-devel

Re: checking libksane version

by robbystephenson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Kde-graphics-devel mailing list
Kde-graphics-devel@...
https://mail.kde.org/mailman/listinfo/kde-graphics-devel