Anton Kazennikov Anton Kazennikov - 1 month ago 26
C++ Question

cmake and eclipse: default include paths?

I have a project that builds with CMake system, and I like to import it in Eclipse.
However, when I generate eclipse project files with 'cmake -G "Eclipse CDT4 - Unix Makefiles"'
there are no default include paths in Eclipse project(such as /usr/include' or the gcc path for standard headers).

How to fix that in most right way?

System:
linux
gcc 4.3.3
cmake 2.6.4
eclipse 3.5.1

Answer

You have to go to the project properties (right button over the project), "C/C++ include paths and symbols" and add them here as "external include paths".