mini-cmake-qt icon indicating copy to clipboard operation
mini-cmake-qt copied to clipboard

A minimal CMake template for Qt 5 & 6 projects

Minimal CMake Template for Qt 6 Projects

This project is updated for Qt 6. Visit qt5 branch if you are looking for the Qt 5 template.

This is a minimal, but complete and production-ready CMake project template for Qt 6 projects. This may be a starting point for your new application. If that is not intent to be a cross-platform project, you can clean up that stuffs from the template.

Features

  • Handling all possible Qt stuffs (UI, resources, ~~translations~~)
  • macOS bundle
  • Windows executable icon

macOS Deployment

If you want to deploy your application on macOS, I would recommend you read below documents.

Windows Deployment

If you want to deploy your application on Windows, I would recommend you read below documents.

References

  • Building with CMake: https://doc.qt.io/qt-6/cmake-manual.html
  • Qt and CMake: The Past, the Present and the Future: https://www.qt.io/blog/qt-and-cmake-the-past-the-present-and-the-future
  • Using CMake with Qt 5: https://www.kdab.com/using-cmake-with-qt-5/