Building Qt5 plugin via CMake
-
Hi all,
I'm porting our (large and complicated) application from Qt4 to Qt5. It involves building Qt plugins and we use CMake as the makefile generator. All of the plugins are derived from QDesignerCustomWidgetInterface. I'm having no success with this. I tried to follow as much of the AnalogClock example as possible, but the QMake bits aren't relevant to me. I'd like to know what the CMake equivalents are.
When I try, I get an error when moc'cing the headder file: qtxbuttonplugin.h(10): error : Undefined interface. This is on the Q_INTERFACES() line. Can anybody please tell me what I need to do to fix this. Better yet, please point me to an example of building a plugin with CMake.
I'm using Qt 5.5.1 with CMake 3.6.3. We use Visual Studio 2013 on Windows and gcc 4.8 on Linux.
Thanks in advance,
Graham