[Qt-interest] qmake: setting INCLUDEPATH from a shell command output

Miguel Cardenas mfcardenas at gmail.com
Sun Feb 15 06:41:22 CET 2009


>
> MYSQL_INCLUDES = $$system(mysql_config --include)
> INCLUDEPATH += $$MYSQL_INCLUDES
>
> Or shortly
> INCLUDEPATH += $$system(mysql_config --include)
>
> I didn't try it myself and I don't know if it will work or not!! I am new
> to Qt and am just making my way through the documentation. Check this for
> more details:
> http://doc.trolltech.com/4.4/qmake-function-reference.html#system-command
>
> Hope it works!
>
> Regards,
> Islam
>

Hi

Well, it works but gets expanded this way

-I-I/usr/local/mysql/include/mysql

qmake generates the first -I and mysql_config the second one... I need to
include it just as parameter and not INCLUDEPATH or the -I will be
duplicated making fail the make...

Thanks for your help, will see if can include it as parameter only...


-- 
Miguel Cardenas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090214/a5394edc/attachment.html 


More information about the Qt-interest-old mailing list