[Qt-interest] qmake and external libraries

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Mon Jun 21 12:14:56 CEST 2010


Manuel Argüelles wrote on Monday, June 21, 2010 8:24 AM:

> Hello,
> 
> Is it possible to check for the presence of a library and define a
> macro if found? like (HAVE_MYLIB)? 

Not sure if that would work, but if you know the exact location of the library (e.g. /usr/lib/libFoo.so) you could simply test for the existence (there is a qmake function for that) of that file and set the define with DEFINE += HAVE_FOO_LIB (or DEFINES += ...).

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list