CMakeプロジェクトをIDEに追加する
CMake (バージョン 3.31以降) をダウンロードしてインストールします。
Choose Tools>Options>CMake/CMSIS-Toolbox to open the settings page for CMake/CMSIS-Toolbox and specify the path to the CMake executable.
Choose Project>Add or Create>Create New Project to open the Create New Project dialog box.
Select one of the templates Import CMakeLists.txt or Attach to pre-configured CMake directory, located under the CMake for Arm folder.
追加するCMakeプロジェクトの
CMakeLists.txtを選びます。これには数分かかる場合があります。If you selected the template Attach to pre-configured CMake directory, navigate to an existing CMake build directory. The new Embedded Workbench project will use the information found in that directory. Creating a project this way is very convenient if you are using a complex build system that uses CMake, for example, some real-time operating systems. A project created this way cannot be configured in the Embedded Workbench IDE except by specifying extra command line options in the Project>Options>CMake>CMake dialog box, because the project is controlled by what is on disk in the attached build directory, rather than by user input.
プロジェクトファイルを適切な場所に保存します。
すべてのファイルがワークスペースウィンドウに表示されます。
プロジェクトを通常のEmbedded Workbenchプロジェクトとして解析およびデバッグできるようになりました。複数の実行可能なターゲットがあるプロジェクトでは、プロジェクト>オプション>CMake>ターゲットページでデバッグするターゲットを選択します。
テンプレートの空のプロジェクト を使用し、後でIDEに
CMakeLists.txtファイルをインポートすることもできます。ただし、ツールチェーンCMake forArmを選択した場合に限ります 。プロジェクト>CMakeLists.txtをプロジェクトに追加を選択して、CMakeLists.txtファイルをインポートします。インポートできるCMakeLists.txtファイルは 1 つだけです。