[CMake] Help: How to show Qt src file in out-source folder build mode for Eclipse CDT project

Droscy droscy85 at yahoo.it
Sun May 9 11:26:41 EDT 2010


Hi Yang.
I'm not sure this solution is what you are looking for, but you can try.

Consider you have the source files in /project/src and the out-of-source
build in /project/build. Do the following:
- go to the /project/build folder
- execute
        cmake -G"Eclipse CDT4 - Unix Makefiles" ../src
- move (or copy) the two files .project and .cproject (created by CMake)
from /project/build to /project/src.
- open Eclipse and import the project in /project/src folder. Eclipse
will correctly import the project and build it in /project/build folder.



Bye
Droscy



More information about the CMake mailing list