https://github.com/Kitware/CMake
Raw File
Tip revision: 5fa7ef4e44ad79389683431ac23657454c8c2fd5 authored by Brad King on 24 June 2024, 14:31:45 UTC
CMake 3.30.0-rc4
Tip revision: 5fa7ef4
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