[CMake] SOURCE_GROUP - exists any macro to define subfolder?

Brad King brad.king at kitware.com
Thu Sep 8 09:09:07 EDT 2005


Sören Freudiger wrote:
> But nevertheless I want to create subfolders or correct: "subfilters" at MS
> visual studio projects. 
[snip]
> I only found this very old answer:
> http://public.kitware.com/pipermail/cmake/2004-March/004908.html
> 
> Is it possible to create such subfolders/filters with MACROS?
> Of course I can hardcode this Problem, but such cammands won't be put in to
> any new version of CMake? Is there any workaround for this problem?

This cannot be implemented in a macro because the change would need to 
be in the project file generator.  Macros are only useful in the cmake 
configuration language from which the generators read results in order 
to generate a native build system.

As stated in the message you referenced, if you add support to the 
existing SOURCE_GROUP command for subfolders we will be happy to accept 
the changes.  Please post your proposed interface for the command before 
implementing the changes.

-Brad


More information about the CMake mailing list