Skip to main content

IAR Embedded Workbench for Arm 10.10.x

CMakeプロジェクトをIDEに追加する

このセクションの内容:
CMakeプロジェクトを追加するには :
  1. CMake (バージョン 3.31以降) をダウンロードしてインストールします。

  2. Choose Tools>Options>CMake/CMSIS-Toolbox to open the settings page for CMake/CMSIS-Toolbox and specify the path to the CMake executable.

  3. Choose Project>Add or Create>Create New Project to open the Create New Project dialog box.

  4. Select one of the templates Import CMakeLists.txt or Attach to pre-configured CMake directory, located under the CMake for Arm folder.

  5. 追加するCMakeプロジェクトのCMakeLists.txtを選びます。これには数分かかる場合があります。

  6. 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.

  7. プロジェクトファイルを適切な場所に保存します。

    すべてのファイルがワークスペースウィンドウに表示されます。

    プロジェクトを通常のEmbedded Workbenchプロジェクトとして解析およびデバッグできるようになりました。複数の実行可能なターゲットがあるプロジェクトでは、プロジェクト>オプション>CMake>ターゲットページでデバッグするターゲットを選択します。

    テンプレートの空のプロジェクト を使用し、後でIDEにCMakeLists.txtファイルをインポートすることもできます。ただし、ツールチェーンCMake forArmを選択した場合に限ります 。プロジェクト>CMakeLists.txtをプロジェクトに追加を選択して、 CMakeLists.txtファイルをインポートします。インポートできるCMakeLists.txtファイルは 1 つだけです。