[Qt-interest] Best way to deal with library dependancies with qmake
Girish Ramakrishnan
girish at forwardbias.in
Mon Sep 14 19:22:44 CEST 2009
Evan Teran wrote:
> So I have a project which depends on an external library. Is there a best
> practice for dealing with this? Is there any form of qmake time detection of
> dependencies available?
>
> I suppose I could do something like this (my external dependency is boost):
>
> exists( /usr/include/boost/bind.hpp ) {
> message( "Required boost header not found, please check your
> installation" )
> }
>
> The problem with this is that I would need to figure out where the header
> could be installed (not just /usr/include, since I plan to support windows
> as well).
>
> option B is of course to make a "configure" script which do some probing and
> tweaks the .pro file (or could just generate a .pri file for inclusion, same
> difference really).
>
> Is there something better or are these my options?
>
Yes, those are your options. Either a 'configure' script or use
something like cmake which has good support for Qt.
Girish
More information about the Qt-interest-old
mailing list