<div class="gmail_quote">On Thu, Feb 19, 2009 at 6:30 PM, Dat Chu <span dir="ltr">&lt;<a href="mailto:dattanchu@gmail.com">dattanchu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So I got my Eclipse CDT project imported just like the wiki said. I<br>
can build it just fine (which is great). But when I build the project,<br>
the binary is not added to my Eclipse project. Thus I cannot run it<br>
and have the output inside Eclipse Console tab.<br>
<br>
I have to a terminal, navigate to the project build folder and<br>
manually type the command to run. Am I missing something?</blockquote><div><br>Make sure any executables you&#39;re generating are not exactly the same as your PROJECT() or a directory in your project otherwise you&#39;ll run into this bug:<br>
<a href="http://public.kitware.com/Bug/view.php?id=5938">http://public.kitware.com/Bug/view.php?id=5938</a><br><br>If that&#39;s not the case make sure you&#39;re creating a build directory completely outside of the source directory:<br>
<a href="http://www.cmake.org/Wiki/Eclipse_CDT4_Generator">http://www.cmake.org/Wiki/Eclipse_CDT4_Generator</a><br>like so:<br>/home/user/project/CMakeLists.txt =&gt; source tree<br>/home/user/project.build/ =&gt; build tree<br>
<br></div></div><br>-- <br>Philip Lowman<br>