使用cmake为Eclipse CDT生成的项目

tam*_*olo 5 c++ eclipse-cdt cmake

我按照如何使用Eclipse配置C/C++项目和CMake文章将我用cmake生成的项目导入Eclipse CDT.除了调试时,一切都很顺利.

尝试调试时出现此错误

No source available for "main() at 0x5bca71"
Run Code Online (Sandbox Code Playgroud)

在gdb控制台窗口中,这是消息

The target endianness is set automatically (currently little endian)
No source file named /home/.../Desktop/GP/Test/src/Main.cpp.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Run Code Online (Sandbox Code Playgroud)

我在Linux Mint 15中使用Eclipse Kepler和cmake版本2.8.10.1

arr*_*owd 1

尝试设置CMAKE_BUILD_TYPEDebug重新生成/重建项目。