Awesome Philip, that works perfectly. The binary is getting picked up. I also found that running eclipse in the command line (instead of Gnome menu) enables the application output console when I choose Run as Local C/C++ Application.
Thank you very much. Dat Chu On Thu, Feb 19, 2009 at 6:48 PM, Philip Lowman <phi...@yhbt.com> wrote: > On Thu, Feb 19, 2009 at 6:30 PM, Dat Chu <dattan...@gmail.com> wrote: >> >> So I got my Eclipse CDT project imported just like the wiki said. I >> can build it just fine (which is great). But when I build the project, >> the binary is not added to my Eclipse project. Thus I cannot run it >> and have the output inside Eclipse Console tab. >> >> I have to a terminal, navigate to the project build folder and >> manually type the command to run. Am I missing something? > > Make sure any executables you're generating are not exactly the same as your > PROJECT() or a directory in your project otherwise you'll run into this bug: > http://public.kitware.com/Bug/view.php?id=5938 > > If that's not the case make sure you're creating a build directory > completely outside of the source directory: > http://www.cmake.org/Wiki/Eclipse_CDT4_Generator > like so: > /home/user/project/CMakeLists.txt => source tree > /home/user/project.build/ => build tree > > > -- > Philip Lowman > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake