[CMake] add_subdirectory and eclipse project

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jan 18 13:17:56 EST 2011


On Tuesday 18 January 2011, Andrea Galeazzi wrote:
...
> I just read that wiki page but what I didn't find is how can I see the
> sources referenced by the add_subproject function in the layout  of
> eclipse project.

You mean add_subdirectory(), right ?

> In other words, CMake generates an eclipse project with a folder named
> [Source directory], containing just only the sources listed in the
> CMakeLists.txt but it doesn't allow to see the sources included by
> add_subproject.

There should be subdirectories there which you should be able to open, which 
should show the files.

Which exact version of cmake are you using ?

Alex


More information about the CMake mailing list