CMake コードの補完

Qt Creator は、CMake コマンドのコード補完に特化した引数を提供するために、一般的なハイライトを使用します。例えば、CMake: set_source_files_properties コマンドでは、ソースファイルのプロパティのみが提案され、テストやターゲットのプロパティは提案されません。

以下の CMake 固有のトリガートークンがサポートされています:

  • $ 変数用
  • $< ジェネレーター式
  • $ENV 環境変数用

選択した提案を受け入れ、コードを完成させるには、TabまたはEnter を選択します。

How To: Build with CMakeCMakeCompletionSnippetsも参照してください

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.