[CMake] eclipse generator and sibling folders

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Thu Apr 30 18:21:39 EDT 2009


On Thu, Apr 30, 2009 at 7:54 AM, Antoine DUCHAMPS wrote:
[...]
> sugest to create source and build folders as "siblings". From this I
> understand that I have to folders like
>
> /home/user/project-src
> /home/user/project-bin
>
> So, how can be the source inside the project? I assume that I have to
> call ccmake as usual, i.e. :
>
> cd /home/user/project-bin
> ccmake -G"Eclipse CDT4 - Unix Makefiles" ../project-src

Yes, this is the recommended way.

> (Of course this works but I cannot navigate the source code after
> importing the project into eclipse ... )

There should be a linked resource per each 'project(XXX)' command in
your CMakeLists.txt that allows you to do that.

> Could anybody tell me what I'm doing wrong?

Nothing that I can see from your description. If you create a minimal
example that exhibits the problem. You can send it to me and I can try
it to see if there is a problem.

BTW, what Eclipse, Eclipse CDT, and CMake version are you using?

--Miguel


More information about the CMake mailing list