Qt component defines

Thiago Macieira thiago at kde.org
Thu Aug 27 17:56:36 CEST 2009


Em Quinta-feira 27 Agosto 2009, às 00:27:16, você escreveu:
> I forwarded the OP mail to Clinto Stimpson, who is the FindQt4.cmake
> module maintainer. This is his answer:
> 
> "
> UseQt4.cmake adds -D flags for each module.
> Are they not correct?  When I added those -D flags it was based on
> qmake's behavior.
> 
> Clint
> "
> 
> I guess the problem is in KDE we do not do INCLUDE( ${QT_USE_FILE} )
> because we do not use the QT_LIBRARIES var. The reason we do not do
> that is with so many projects being configured in the same CMake pass,
> QT_LIBRARIES would be useless: it would contain the sum of all the Qt
> libraries any one project has requested at some time by using SET(
> QT_USE_QTXXX 1).
> 
> Maybe we should do INCLUDE( ${QT_USE_FILE} ) but keep on NOT using
> QT_LIBRARIES ?

There's no need to change anything.

Those #defines are only used in QtTest. The KDE macros for adding executables 
could handle that (NOGUI -> don't add the QtGui #define).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090827/b11b7544/attachment.sig 


More information about the Kde-buildsystem mailing list