https://github.com/Kitware/CMake
Raw File
Tip revision: 64fb825438a2fecb9eab9933d5d1b926bf6f294b authored by Brad King on 24 November 2020, 13:50:26 UTC
CMake 3.19.1
Tip revision: 64fb825
main.cpp

#include <QApplication>
#include <QString>
#include <QWidget>

#ifndef QT_CORE_LIB
#  error Expected QT_CORE_LIB
#endif

#ifndef QT_GUI_LIB
#  error Expected QT_GUI_LIB
#endif

int main(int argc, char** argv)
{
  QApplication app(argc, argv);

  QWidget w;
  w.setWindowTitle(QString::fromLatin1("SomeTitle"));
  w.show();

  return 0;
}
back to top