サポートされる CMake のバージョン
cmake_minimum_required()
は、プロジェクトを正常に設定するために必要な最小 CMake バージョンを指定します。また、CMake の後方互換性の動作のさまざまな側面を制御する、プロジェクトのCMake ポリシー設定を更新します。
Qt プロジェクトでは、cmake_minimum_required
コマンドでバージョン3.16
以降を設定する必要があります。
プロジェクトの設定に使用するCMakeの実際のバージョンは、ターゲットプラットフォームにも依存します。ほとんどのターゲット・プラットフォームでは、3.16
です。
以下のプラットフォームをターゲットにする場合は、CMake のバージョン3.21.1
以降を使用する必要があります:
- Qt の静的ビルド
- Apple プラットフォーム(Qt for macOS、Qt for iOS)
- WebAssembly 用の Qt
© 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.