[CMake] Multiple folder depths in VS projects

Jon W knowdat at gmail.com
Thu Jun 28 11:05:07 EDT 2007


On 6/28/07, Sylvain Benner <benner at virtools.com> wrote:
> Jon W a écrit :
> > Is there a way to have more than one level of folders in Visual Studio
> > projects?
>
> Try this :
>
> For your foo project
> SOURCE_GROUP("Source Files/Dir1" FILES source1.h source1.cpp ...)
> or
> SOURCE_GROUP("Source Files\\Dir1" FILES source1.h source1.cpp ...)
>
> -Sylvain
>

The following code worked perfectly:

  SOURCE_GROUP("Source Files\\Dir1" FILES source1.h source1.cpp ...)

Thank you,
Jon


More information about the CMake mailing list