<div dir="ltr"><div>Hello All,</div><div><br></div><div>I have a source folder(Src) as below:</div><div>Src/Application/</div><div>Src/Middleware/</div><div>Src/Etc/</div><div><br></div><div>I create a build folder above Src/</div>
<div>mkdir build</div><div>cd build</div><div>cmake ../</div><div><br></div><div>This makes the binary under build/ with CMakeLists.txt under Src/, so I have</div><div>Src/</div><div>build/</div><div><br></div><div><br></div>
<div>However, when I need to browse/debug code using eclipse:</div><div>mkdir build</div><div>cd build</div><div>cmake ../ -G"Eclipse CDT4 - Unix Makefiles"</div><div><br></div><div>causes the .project file to be created in ../build, which is ok... but</div>
<div>the import into eclipse causes the file layout structure to show the build directory, rather than the source.</div><div><br></div><div>Is there a way I could I have the .project files reference the Src/ directory files.</div>
<div><br></div><div>I can think of one workaround.</div><div>When debugging run cmake from the source dir:</div><div>cmake -G"Eclipse CDT4 - Unix Makefiles"</div><div>In this case I get a good view of the source folders. However, now I have two different build steps... one for building and one for debugging.</div>
<div><br></div><div>Thanks!</div><div>-Gerard</div></div>