https://github.com/Kitware/CMake
Raw File
Tip revision: 948d5d18fd6deed24ede54cb0e3b017511f99559 authored by Brad King on 26 February 2014, 15:32:56 UTC
Merge branch 'fix-find_dependency-macro' into release
Tip revision: 948d5d1
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