My goal is to use CMake with Eclipse CDT.
A tiny CMakeLists.txt file from every tutorial works well for me, and Eclipse succesfully imports and builds the generated project.
But after building it doesn't see the binary ("Launch failed. Binary not found.") because it goes into the root project directory, not in Debug/ or Release/ (or the project lacks some metadata).
How to build executables recognized by Eclipse?
Best Answer
you have to create a new run configuration. go to
run > run configurations > C\C++ Application
and follow instructions, press the new configuration button if you have the example hello world project you can copy the setup.I added
debug\"Program Name"
under C\C++ application