Hello All,

I have a source folder(Src) as below:
Src/Application/
Src/Middleware/
Src/Etc/

I create a build folder above Src/
mkdir build
cd build
cmake ../

This makes the binary under build/ with CMakeLists.txt under Src/, so I have
Src/
build/


However, when I need to browse/debug code using eclipse:
mkdir build
cd build
cmake ../ -G"Eclipse CDT4 - Unix Makefiles"

causes the .project file to be created in ../build, which is ok... but
the import into eclipse causes the file layout structure to show the build
directory, rather than the source.

Is there a way I could I have the .project files reference the Src/
directory files.

I can think of one workaround.
When debugging run cmake from the source dir:
cmake -G"Eclipse CDT4 - Unix Makefiles"
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.

Thanks!
-Gerard
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to