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

Yang, Y. Y.Yang at tue.nl
Sun May 9 17:49:45 EDT 2010


Hi, Droscy

Thanks. I use your suggested method.
Maybe future Eclipse can support out source build.

Best regards

Yang
________________________________________
From: Droscy [droscy85 at yahoo.it]
Sent: Sunday, May 09, 2010 5:26 PM
To: Yang, Y.
Cc: cmake at cmake.org
Subject: Re: [CMake] Help: How to show Qt src file in out-source folder build mode for Eclipse CDT project

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