https://github.com/Kitware/CMake
Raw File
Tip revision: 84df4a49500e51ac6e2a19a77e385e66234386f7 authored by Brad King on 06 February 2017, 19:37:07 UTC
Merge branch 'FeatureSummary-doc-cleanup' into release
Tip revision: 84df4a4
main_gen_test.cpp

#include <QObject>

#include "myinterface.h"

class MyObject : public QObject, MyInterface
{
  Q_OBJECT
  Q_INTERFACES(MyInterface)
public:
  explicit MyObject(QObject* parent = 0)
    : QObject(parent)
  {
  }
};

int main(int argc, char** argv)
{
  MyObject mo;
  mo.objectName();
  return 0;
}

#include "main_gen_test.moc"
back to top