Qt6 QML における CMake グローバル変数

CMake コマンドは、以下のグローバル CMake 変数を認識します:

QT_QMLLINT_CONTEXT_PROPERTY_DUMP

lint ターゲットでのコンテキストプロパティのダンプを有効にします。

QT_QML_GENERATE_AOTSTATS

QML コンパイラの統計情報の収集を有効にするかどうかを制御します。

QT_QML_GENERATE_QMLLS_INI

QML Language Server 向けの.qmlls.iniファイルの自動生成を有効にします。

QT_QML_GENERATE_QMLLS_INI_NO_CMAKE_CALLS

QML Language Server 用の.qmlls.iniファイル内のno-cmake-callsの値をカスタマイズします。

QT_QML_NO_CACHEGEN

QMLファイルのバイトコードまたはC++コードへのコンパイルを無効にします。

QT_QML_NO_QML_PREVIEW (global property)

Qt6::Qml にリンクする実行ファイルに対して、qmlpreview のサポートが自動的に設定されるかどうかを制御します。

QT_QML_OUTPUT_DIRECTORY

デフォルトで QML モジュールが作成されるベース出力ディレクトリ。

© 2026 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.