- Qt 6.12
- Qt Qml
- CMake Integration for QML
- CMake Global Variables in Qt6 Qml
- Qt 6.12.0 Reference Documentation

qt_target_compile_qml_to_cpp ◦ CMake Global Properties for QML

# CMake Global Variables in Qt6 Qml

CMake Commands know about the following global CMake variables:

QT_QMLLINT_CONTEXT_PROPERTY_DUMP | Enables dumping of context properties in lint targets.
QT_QML_GENERATE_AOTSTATS | Controls whether QML Compiler statistics collection is enabled.
QT_QML_GENERATE_QMLLS_INI | Enables autogeneration of .qmlls.ini files for QML Language Server.
QT_QML_GENERATE_QMLLS_INI_NO_CMAKE_CALLS | Customizes the value of no-cmake-calls in .qmlls.ini files for QML Language Server.
QT_QML_NO_CACHEGEN | Disables compilation of QML files into bytecode or C++ code.
QT_QML_OUTPUT_DIRECTORY | Base output directory below which QML modules will be created by default.

qt_target_compile_qml_to_cpp ◦ CMake Global Properties for QML