Skip to main content

Qt Creator 19 - CMake Update

Comments

Here are the new CMake changes in Qt Creator 19:

find_package dependency provider refactoring

Qt Creator 17 introduced a find_package() dependecy provider as part of the package manager auto-setup feature.

The feature has been refactored in Qt Creator 19. Instead of popping up the Qt SDK Maintenance Tool, now it provides a link in the Issues panel. To install the missing Qt components all you have to do is click on that link.

Below you have the Dice demo configured with missing Qt components:

qtcreator-19-dependency-provider

Ninja build tool part of Device tools

In the case that you have issues with the Ninja build tool, you need to check the Source and Build Tools that are part of Devices.

qtcreator-19-ninja-desktop

CMake Presets JSON LSP

Qt Creator will install a JSON LSP (Language Server Protocol) that uses the CMake Presets JSON schema for editing.

Please make sure that you have node.js installed.

If for some reason this fails to work out of the box, see QTCREATORBUG-34305 for manual installation of the JSON LSP.

qtcreator-19-cmake-presets-json-lsp

CTest “ct” locator

Qt Creator has had a cm locator for a while now, you can build a CMake target with it. But what if you want to build and run only a test?

This is where the ct locator filter comes into play. Best used with Qt Creator 19.0.1.

qtcreator-19-ct-locator

CMake Configure Details panel

Qt Creator 19 will remember if you closed the Details of the Build Settings > CMake > Configure panel.

qtcreator-19-persistent-configure-close

 

Comments

Subscribe to our blog

Try Qt 6.11 Now!

Download the latest release here: www.qt.io/download

Qt 6.11 is now available, with new features and improvements for application developers and device creators.

We're Hiring

Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.