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">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"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../src<br>-- processing CMakeLists.txt<br>-- <other processing output elided><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 ("You will now find two Eclipse files in your build tree") 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?<br><br>Many thanks,<br><br>Allen Gooch<br><br><br>