[cmake-developers] CMAKE_AUTOMOC, system include dirs and target include directories
Stephen Kelly
steveire at gmail.com
Sun Mar 17 08:40:23 EDT 2013
Stephen Kelly wrote:
> The bug can be reproduced with this cpp file:
>
>
> #include <QtTest/QTest>
>
> // Make CMAKE_AUTOMOC run on this file.
> class MyObject : public QObject
> {
> Q_OBJECT
> explicit MyObject(QObject *parent = 0)
> {
> QSKIP("The QSKIP macro has two args in Qt4 and one in Qt5.");
> }
> };
Also note if you try this, do not compile in c++11 mode. The QSKIP macro is
variadic in that mode to ignore the additional argument necessary in Qt 4
code. I don't know if moc handles that.
Thanks,
Steve.
More information about the cmake-developers
mailing list