Qt6 Qml 中的 CMake 全局变量

CMake 命令了解以下 CMake 全局变量:

QT_QML_GENERATE_AOTSTATS

控制是否启用 QML Compiler 统计收集。

QT_QML_GENERATE_QMLLS_INI

QML Language Server 启用 .qmlls.ini 文件的自动生成。

QT_QML_NO_CACHEGEN

禁止将 QML 文件编译成字节码或 C++ 代码。

QT_QML_OUTPUT_DIRECTORY

基本输出目录,默认情况下将在该目录下创建 QML 模块。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.