https://github.com/Kitware/CMake
Raw File
Tip revision: d421274e3e11a0e6480358faa8a8e5cf48d7b3c2 authored by Brad King on 15 July 2020, 11:19:20 UTC
CMake 3.18.0
Tip revision: d421274
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