<div class="gmail_quote">On Mon, Apr 20, 2009 at 6:18 PM, Allen Gooch <span dir="ltr">&lt;<a href="mailto:allen.gooch@gmail.com">allen.gooch@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;">
I am trying to get an out-of-tree build Eclipse CDT4 project setup in a Linux host environment using CMake-2.7 prerelease built from CVS a couple of weeks ago.  Following the instructions at <a href="http://www.vtk.org/Wiki/Eclipse_CDT4_Generator" target="_blank">http://www.vtk.org/Wiki/Eclipse_CDT4_Generator</a> I do the following:<br>

<br>$ pwd<br>/home/agooch/dev<br>$ ls<br>src/ <br>$ mkdir cdt4-build<br>$ cd cdt4-build<br>$ cmake -G&quot;Eclipse CDT4 - Unix Makefiles&quot; -D CMAKE_BUILD_TYPE=Debug ../src<br>-- processing CMakeLists.txt<br>-- &lt;other processing output elided&gt;<br>

-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/agooch/dev/src<br>$ ls<br>total 0<br>$<br><br>The way the documentation reads (&quot;You will now find two Eclipse files in your build tree&quot;) I would expect the .project and .cproject files to be written to /home/agooch/dev/cdt4-build, however as the output indicates those files have been written at the top-level of the src tree.<br>

<br>How can I get the generated files to be built into the build tree?</blockquote><div><br>I think you may need to have your source directory completely outside of your build directory.  In other words:<br><br>  src/<br>
  cd4-build/<br><br>Could you try that? Also make sure that you don&#39;t have a CMakeCache.txt or .project/.cproject in src/MySourceTree before you configure.<br></div></div><br>-- <br>Philip Lowman<br>