Using Modern CMake with Qt

 

CMake is a a cross-platform build system, with powerful APIs for finding  dependencies of various or specific versions, and with many abstractions for  platforms, compilers, other build systems and dependencies.  The next major Qt version, Qt6, will be using CMake internally as its build system, so the CMake integration with Qt will likely get tighter and more versatile in the long-term. In this talk we'll be introducing Qt specific CMake functionalities, in order to find and use Qt5 inside your personal CMake-based project, using modern CMake capabilities.

We are going to discuss how to find Qt installs using CMake's find_package function and how to find specific Qt versions when multiple versions are installed. Further than that, useful CMake variables such as CMAKE_INCLUDE_CURRENT_DIR, CMAKE_AUTOMOC, CMAKE_AUTORCC and CMAKE_AUTOUIC will be explained in detail and how the use of the CMake integrations can speed up the build drastically.

Last but not least some of the additional supplied Qt related CMake functions, such as for big resources or translation support will be discussed.

Target audience: Build Engineers or Software Engineers who would like to know more about using Qt under CMake.

Prerequisite: No prior CMake experience required 

Speaker: Kevin Funk - Senior Software Engineer at KDAB

Kevin has actively developed with Qt/C++ since 2006 and has a special interest in tooling and profiling. He’s an active contributor to KDAB’s GammaRay analyzer (a high-level Qt application debugger) and has a strong emphasis on state machine tooling. He is co-maintainer of the KDevelop IDE, a powerful C/C++ development environment backed by Clang, and is pushing for cross-platform success inside KDE. Kevin holds a Masters Degree in Computer Science.

Previous
What’s New in Design Studio 1.5
What’s New in Design Studio 1.5

Get a tour of all the new features the Design Studio team are working on this year. Full 3D Support, Flow E...

Next Article
Introduction to Qt Creator IDE
Introduction to Qt Creator IDE

Qt Creator is a powerful IDE aimed at making you a more productive C++ and Qt programmer. This webinar show...

Don't miss the UI/UX Event of the Year! #QtWS20

Get Your Tickets
×

Watch the state of software development in the Qt Virtual Tech Con 2020

Send me news about Qt products and services.
Thanks!
Error - something went wrong!