You can set preferences for the output of UML-to-real-time C++
transformations. For example, you can specify the output artifact type, output
subdirectory, and any copyright text that appears in the generated header
and source files.
About this task
Build and compile settings are part of the C/C++ Development Toolkit
(CDT) project settings (for example, compiler options, optimization settings,
and linking options).
To specify preferences for the output of UML-to-real-time
C++ transformations:
Procedure
- In the Project Explorer view, right-click
a transformation configuration file; then click Open.
- Click the Properties tab.
- On the Properties page, complete one or more
of the following steps:
- To specify the top-level capsule, which is required for C++ executables
targeted for the C++ TargetRTS environment, click the Select button; then
select a capsule in your model that represents the highest scope of the executable
code that you want the transformation to create. Click OK.
- To specify that data classes are compiled individually, select the Compile
data classes individually check box.
- To specify that inclusions are generated for UML classes, select the Generate
class inclusions check box.
- To specify the compiled artifact type, in the Artifact
type list select C++ Executable, C++
External Library, or C++ Library.
- To specify the runtime environment, in the Environment list
select C++ or C++ TargetRTS.
- Specify additional code generation properties as needed.
- Click .
Results
Note: If you create
a new transformation configuration, you can specify this information on the
Properties page
of the New Transformation Configuration wizard.