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

Sören Freudiger muffmolch at gmx.de
Thu Sep 8 11:29:37 EDT 2005


okay! tomorrow I'll think about and parse your source files for the
SOURCE_GROUP command. 

Greetz,
SirAnn

-----Ursprüngliche Nachricht-----
Von: Brad King [mailto:brad.king at kitware.com] 
Gesendet: Donnerstag, 8. September 2005 15:09
An: Sören Freudiger
Cc: cmake at cmake.org
Betreff: Re: [CMake] SOURCE_GROUP - exists any macro to define subfolder?

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