Yocto Application Development Using Eclipse IDE

I am using Eclipse IDE with ADT to develop the applications under Yocto SDK.

I have working "Hello World" project out of "Yocto Project SDK Autotools Project" templates and it runs with no problem.

But when I created "Hello World" using "Yocto Project SDK Cmake Project" templates

the project is not build

Build of project failed with the following error:CMake Error: Could not find CMAKE_ROOT !!!CMake has most likely not been installed correctly.Modules directory not found in/opt/fsl-imx-xwayland/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.5CMake Error: Error executing cmake::LoadCache(). Aborting.

Under Yocto SDK installed in

/opt/fsl-imx-xwayland/4.9.51-mx8-beta/sysroots

there is cmake-3.6 which instead config points to cmake-3.5 ...

I have cmake included in my Yocto SDK build, what is the correct configuration of ADT Eclipse plugin?

Using the Eclipse plugin with the cmake from the sdk

This can get confusing because it may be unclear which cmake eclipse is using, if you have one in the sdk and one installed on the host. To make sure you get the cmake from the sdk, launch eclipse from a terminal that has already sourced the environment script instead of launching it by clicking on an icon (old school, I know...). For example in my case :