问题描述
我有一个用CMake系统构建的项目,我喜欢在Eclipse中导入它。
然而,当我用'cmake -G'生成eclipse项目文件时Eclipse CDT4 - Unix Makefiles'
在Eclipse项目中没有默认的包含路径(如/ usr / include'或gcc路径标准头)。
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?
系统:
linux
gcc 4.3.3
cmake 2.6.4
eclipse 3.5.1
System:linuxgcc 4.3.3cmake 2.6.4eclipse 3.5.1
推荐答案
项目属性(项目右侧的按钮),C / C ++包含路径和符号,并将其添加为外部包含路径。
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".
这篇关于cmake和eclipse:默认包含路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!