Skip to content
DeHecht edited this page Feb 21, 2019 · 2 revisions

How to use the plugin

Setup a project

Any project (even existing projects or non cdt projects) can be setup to use the plugins CMake support. Just select CMake -> Setup in the Context menu.

CMakeSetupContextMenu

Note: This context menu is currently only available in the C/C++ Projects and Navigator view.

Select a toolchain for cross compiling

When invoking Setup the configured default toolchain will be used in case multiple toolchains have been setup. You can switch between the toolchains like shown in the following screenshot:

SwitchToolchain

The plugin will put the binaries in different directories, so switching the toolchain will not affect the binaries for the existing toolchain. Click here for information how to setup toolchains

Switching the build type

By default, CMake provides multiple builtin build-types, like: "Release", "Debug", etc. these can be selected in a different context menu as shown below:

SwitchToolchain

It is possible to alter the list in the preferences.

The rest is up to you

You can define toolchains and add project wizard templates but the rest has to be defined within the CMakeLists.txt files.