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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake