How to Import a CMake project into Eclipse CDT?

How to Import a CMake project into Eclipse CDT?

asked May 28, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

For example, the current CMake project source directory is ./src.

mkdir ./cdt && cd ./cdt && \
cmake -G "Eclipse CDT4 - Unix Makefiles" ../src

cmake will generate a Eclipse project in ./cdt and you can open it in Eclipse.

answered May 28, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Related questions

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...