Menu

1 / 2

Qt Creator 21 - CMake Changes

Planet Qt·8 days ago
#EtoiZWxe
#planetqt#qt#cmake#linux#creator
Reading 0:00
15s threshold

Here are the new CMake changes in Qt Creator 21:

Editor

Qt Creator 21 comes with a new CMake language parser. It uses qlalr , the same parser generator used by QML. This allows better CMake editing in the IDE.

Indenter / Formatter

This paved the way for a CMake indenter and formatter as well.

Quick Fixes

The CMake editor now supports quick fixes. The following quick fixes are implemented:

Creating a new source file if not present

Creating a CMakeLists.txt for an add_subdirectory call

Installing a Qt component for a find_package(Qt6 COMPONENTS) call

Documentation

Qt Creator 21 parses the reStructuredText ( .rst ) documentation of CMake functions / macros if provided.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.