プロジェクトの CMake 設定を上書きする
現在のプロジェクトの CMake 設定を上書きするには:
- Projects >Project Settings >CMake に移動します。

- Use global settings をクリアします。
- プロジェクトの CMake を設定します。
Preferences >CMake >General で設定した値を上書きします。
| 設定値 | 設定値 | Read More |
|---|---|---|
| Autorun CMake | プロジェクトのCMakeLists.txt 設定ファイルを編集するときに、CMake を実行してプロジェクト情報を更新します。また、プロジェクトのビルド時にもプロジェクト情報を更新します。 | CMake プロジェクトの内容を表示 |
| Clear old CMake output on a new run | CMake を再度実行すると、古い出力を削除します。 | CMake 出力の表示 |
| Package manager auto setup | Conanまたはvcpkgパッケージマネージャーを CMake で使用するように設定します。 | パッケージマネージャーで CMake を使用する |
| Maintenance Tool dependency provider | Qt Online Installer を使用して、不足している Qt モジュールをインストールします。 | 不足している Qt パッケージをインストールする |
| Ask before re-configuring with initial parameters | Re-configure with Initial Variables を選択すると、動作する前に確認します。 | 初期変数で再設定する |
| Ask before reloading CMake presets | Build にアクセスし、Reload CMake Presets を選択すると、操作の前に尋ねられます。 | CMake プリセット |
| Show subfolders inside source group folders | Projects ビューで、サブフォルダー名を非表示にし、ソースグループに従ってファイルを配置します。 | Projects ビューでサブフォルダー名を隠す |
| Show advanced options by default | Initial Configuration とCurrent Configuration で、デフォルトですべての CMake 変数を表示します。 | 高度な変数の表示 |
| Use junctions for CMake configuration and build operations | Windows では、CMake の configure、build、install 操作にジャンクションポイントを使用します。 | Windows でジャンクションポイントを使用する |
これらの環境設定は、CMake configure プリセットとして、または CMakeLists.txt.sharedファイルで設定できます。
How toも参照してください: CMake でのビルド」、「CMake」、「プロジェクトのビルドと実行」も参照してください。
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.