[CMake] Eclipse generator: run/debug configurations
Chris Stankevitz
chrisstankevitz at gmail.com
Sat Jun 2 22:20:14 EDT 2012
Hello,
Q1: Why doesn't the cmake eclipse generator produce run/debug
configurations for the executables in my cmake project?
Q2: How can I add run/debug configurations to my eclipse project such
that I can run, debug, and set breakpoints in my executable (from
within eclipse)?
More detail:
I am using gentoo linux, cmake 2.8.7, and eclipse indigo.
My CMakeLists.txt file produces a few libraries and one executable.
The "unix makefiles" and "eclipse unix makefiles" configurations
produce very nice working builds (thank you very much).
However, in eclipse, neither a "run configurations" nor a "debug
configurations" is created for my executable. This means I cannot
run/debug my executable from within eclipse.
Not one to shy away, I created my own "run/debug configurations" for
my executable. Eclipse will launch the executable, but it is "not
right". When I try to add a breakpoint in the source editor, gdb
complains:
No source file named
/home/cstankevitz/Work/2012-06-01_uavlib/uavlib/VIDTRACC/src/Trackers.cpp.
The file does exist on my hard drive (caveat: I hope eclipse doesn't
think this the period at the end of the message is part of the
filename).
At this point I am confused and post my questions to the group.
Thank you,
Chris
More information about the CMake
mailing list