[Qt-interest] Best way to deal with library dependancies with qmake
Evan Teran
eteran at alum.rit.edu
Mon Sep 14 19:00:48 CEST 2009
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?
Evan
More information about the Qt-interest-old
mailing list