Importing C projects

You can either create a new C project with the Eclipse CDT tools or you can import your existing C source files or Eclipse projects into your Rational® Test RealTime workspace.

About this task

Rational® Test RealTime can only work with its own CDT managed build toolchain. Therefore, imported projects must be converted to Rational® Test RealTime projects.

Procedure

To import an existing C project:
  1. Click File > Import > General > Existing projects into workspace.
  2. Follow the wizard to import the project into the workspace.
  3. After importing, right-click the project and select Convert to Rational® Test RealTime Project.
  4. Select the default target deployment port (TDP) for the project and click Finish.
  5. If you have not already enabled CDT indexing, click Window > Preferences > C/C++ > Indexer, select Index unused headers and click OK.

Results

After conversion, the toolchain of the project is configured to use Rational® Test RealTime instead of the default toolchain. If necessary, you can temporarily switch to the original toolchain in the project properties. However, you must switch back to the Rational® Test RealTime toolchain to use Rational® Test RealTime runtime analysis and component testing tools.
Tip: You can edit the CDT managed build toolchain to use environment variables with the UNIX notation $$. This can be useful when you are sharing projects with other users.