automoc fail
Hi I've discovered a bug, i was trying to create a cmake project for pythonQt. pythonQt contain in the source tree some files that are generated. This files should be process by automoc/moc.. Unfortunately this files are poorly formatted and seems that cmake ignore them.
class PythonQtWrapper_QBitArray : public QObject
{ Q_OBJECT
public:
public slots:
QBitArray* new_QBitArray();
QBitArray* new_QBitArray(const QBitArray& other);
QBitArray* new_QBitArray(int size, bool val = false);
void delete_QBitArray(QBitArray* obj) { delete obj; }
bool at(QBitArray* theWrappedObject, int i) const;
[...]
and the working one:
class PythonQtWrapper_QBitArray : public QObject
{
Q_OBJECT
public:
public slots:
QBitArray* new_QBitArray();
QBitArray* new_QBitArray(const QBitArray& other);
QBitArray* new_QBitArray(int size, bool val = false);
void delete_QBitArray(QBitArray* obj) { delete obj; }
[...]
as you can see the Q_OBJECT macro is in a new line instead to be next the '{'. This simple fix in the source trigger the moc generation.