For testing of Qt classes, it is often useful to have helper classes for only the test driver. In these cases the helper classes could make good use of the Q_OBJECT macro, i.e. use signals/slots.
The attached patch allows to fill a MOC_H_FILES variable in test driver files.cmake. The files given in MOC_H_FILES will be run through moc and compiled into the test driver.