CMakeのQt Creator ベンダープリセット
CMakePresets.json およびCMakeUserPresets.json の「vendor 」セクションで、Qt Creator の設定を指定します。
CMake 設定プリセット
利用可能なプリセットの概要を以下の表にまとめます。
| プリセット | 説明 | 詳細 |
|---|---|---|
AutorunCMake | プロジェクト内のCMakeLists.txt 設定ファイルを編集した際に、CMakeを実行してプロジェクト情報を更新します。また、プロジェクトをビルドした際にもプロジェクト情報を更新します。 | CMake プロジェクトの内容を表示 |
AskBeforePresetsReload | Build に移動して「Reload CMake Presets 」を選択した際、実行前に確認を求めます。 | CMake プリセット |
AskReConfigureInitialParams | 「Re-configure with Initial Variables 」を選択した際に、実行する前に確認を行います。 | 初期変数を使用した再設定 |
PackageManagerAutoSetup | CMake で使用するために、Conanまたはvcpkgパッケージマネージャーを設定します。 | パッケージマネージャーでの CMake の使用 |
ShowAdvancedOptionsByDefault | Initial Configuration およびCurrent Configuration で、デフォルトですべての CMake 変数を表示します。 | 詳細変数の表示 |
ShowSourceSubfolders | 「Projects 」ビューで、サブフォルダ名を非表示にし、ソースグループごとにファイルを並べ替えます。 | 「Projects」ビューでサブフォルダ名を非表示にする |
UseJunctionsForSourceAndBuildDirectories | Windows では、CMake の設定、ビルド、およびインストール操作にジャンクションポイントを使用します。 | Windowsでのジャンクションポイントの使用 |
CMake 設定プリセットの例:
"vendor": { "qt.io/QtCreator/1.0": { "AskBeforePresetsReload": false, "AskReConfigureInitialParams": false, "AutorunCMake": false, "PackageManagerAutoSetup": false, "ShowAdvancedOptionsByDefault": true, "ShowSourceSubFolders": false, "UseJunctionsForSourceAndBuildDirectories": true } }
ビルドプリセット
以下の表は、利用可能なビルドプリセットをまとめたものです。
| プリセット | 説明 |
|---|---|
useStaging | インストール時のステージングを有効にします。これにより、インストール前にビルド成果物が別のステージングディレクトリにコピーされます。 |
stagingDir | useStaging が有効になっている場合に使用されるステージングディレクトリへのパス。 |
iOSAutomaticProvisioningUpdates | ビルド中に iOS プロビジョニング プロファイルを自動的に更新します。 |
clearSystemEnvironment | ビルドステップの実行前に、システム環境変数をクリアします。 |
Qt Creator のビルドプリセットのベンダープリセットの例:
"vendor": { "qt.io/QtCreator/1.0": { "useStaging": true, "stagingDir": "${sourceDir}/staging", "iOSAutomaticProvisioningUpdates": true, "clearSystemEnvironment": false } }
コンパイラプリセット
次の表は、利用可能なプリセットをまとめたものです。
コンパイラ設定の詳細については、「コンパイラの追加」を参照してください。
| プリセット | 説明 |
|---|---|
c | C コンパイラのインストール フォルダのパス。 |
cxx | C++ コンパイラのインストール フォルダのパス。 |
Qt Creator のコンパイラプリセットの例:
"vendor": { "qt.io/QtCreator/1.0": { "compiler": { "c" : "$env{HOME}/llvm/mac/bin/clang", "cxx" : "$env{HOME}/llvm/mac/bin/clang++" } } }
デバッガーのプリセット
次の表に、利用可能なプリセットの概要を示します。
デバッガーの設定の詳細については、「デバッガーの追加」を参照してください。
| プリセット | 説明 |
|---|---|
Abis | システムアーキテクチャ定義のカンマ区切りリスト。 |
Binary | デバッガの実行ファイルへのパス。絶対パス、値「auto 」、または ABI を指定できます。Qt Creator がバイナリのパスを認識できない場合、MSVC ツールチェーンに適したデバッガを検索します。 |
DisplayName | デバッガーの名前。 |
EngineType | デバッガエンジンの種類:
|
Version | デバッガーのバージョン番号。 |
Qt Creator のデバッガープリセットの例:
"vendor": { "qt.io/QtCreator/1.0": { "debugger": { "DisplayName": "GNU gdb 11.2.0 for MinGW 11.2.0 64-bit", "Abis": ["x86-windows-msys-pe-64bit"], "Binary": "C:/Qt/Tools/mingw1120_64/bin/gdb.exe", "EngineType": 1, "Version": "11.2.0" } } }
Qt バージョンのプリセット
以下の表に、利用可能なプリセットをまとめました。
Qtバージョンの設定に関する詳細については、「Qtバージョンの追加」を参照してください。
| プリセット | 説明 |
|---|---|
qt | Qt のインストールフォルダのパス。 |
Qt Creator のQt XMLバージョンのプリセットの例:
"vendor": { "qt.io/QtCreator/1.0": { "qt": "$env{HOME}/Qt/6.11.0/macos/bin/qmake" } }
関連項目: 「 手順: CMake を使用したビルド」、「CMake によるプロジェクトのビルド」、「CMake」、「CMake プリセット」、および「SDK ツール」。
Copyright © The Qt Company Ltd. and other contributors. 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.