Anton Kazennikov Anton Kazennikov - 1 year ago 213
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?

gcc 4.3.3
cmake 2.6.4
eclipse 3.5.1

Answer Source

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".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download