Qt Creator 11 - CMake のアップデート
June 27, 2023 by Cristian Adam | Comments
このブログは「Qt Creator 11 - CMake update」を翻訳したものです。
以下の様に、Qt Creator 11 には 2 つの新しい CMake 機能があります。
プロジェクトファイル管理
Qt Creator 11 では、新規/既存のファイルを CMake ターゲットに追加できます。プロジェクトツリーを介したソースファイルの名前変更や削除もサポートされています。
Qt Creator は、add_executable、add_library、qt_add_executable、qt_add_library 関数呼び出しを処理し、最後にソース/リソース ファイルを追加します。
カスタム CMake API が使用されている場合は、代わりに target_sources 関数呼び出しが使用されます。
Widgets の例
Qt Quick の例
Qt Quick プロジェクトの場合は、qt_add_qml_module 関数があります。追加されたファイルには、QML_FILES、SOURCES、または RESOURCES 関数の引数がプレフィックスとして付けられます。
CMakePresets のリロード
Qt Creator 11 では、CMake プリセットにすばやくアクセスできるように、CMake プリセット プロジェクト ツリー項目が表示されます。
[Build] メニューには、CMakePresets json ファイルからキットを再作成する [Reload CMake Presets] エントリがあります。
Blog Topics:
Comments
Subscribe to our newsletter
Subscribe Newsletter
Try Qt 6.5 Now!
Download the latest release here: www.qt.io/download.
Qt 6.5 is the latest Long-Term-Support release with all you need for C++ cross-platform app development.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
We're Hiring
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.Henkilön Qt (@theqtcompany) jakama julkaisu