Setting CDT project types

In order to initialize a CDT project for real-time code generation, you must select a real-time project type when you create the project.

Before you begin

You can create the CDT project before or after you create your UML development modeling project. However, the CDT project must be set as the target project in a transformation configuration contained in the UML project's source.

About this task

To create a CDT project with a real-time project type:

Procedure

  1. Create a new project by doing one of the following:
    • Click File > New Project > C++ > C++ Project.
    • If you have not added a target for the transformation configuration, open the transformation configuration, click the Source and Target tab, then click Create.
  2. Type a project name.
  3. In the Project types section, select a real-time artifact.
    • Expand Executable; then select one of the following:
      • RT Capsule Executable: The project generates a real-time-C++ executable, in which the TargetRTS contributes the main() entry point for the resulting executable.
      • RT Standalone Executable: The project generates a real-time-C++ executable, in which the reference to the main object file, appropriate only for capsule-based applications, is omitted.

      The transformation configuration associated with the CDT project must have Artifact type set to C++ Executable.

    • Expand Static Library; then click RT Library for a project that generates a real-time-C++ library. The associated transformation configuration should have Artifact type set to C++ Library.
  4. Under Toolchains, select a makefile generator.
  5. Optional: To specify additional project settings, click Next.
  6. Click Finish.

Feedback