[CMake] How to preserve directory structure within Visual Studio

David Cole david.cole at kitware.com
Thu Dec 8 18:55:33 EST 2011


2011/12/8 Mateusz Łoskot <mateusz at loskot.net>:
> On 8 December 2011 21:45, David Cole <david.cole at kitware.com> wrote:
>> No, the FOLDER property is only a mechanism for grouping and
>> organizing *targets*, it is not a source file property...
>
> Is it the source_group still the recommended way of grouping?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> Charter Member of OSGeo, http://osgeo.org
> Member of ACCU, http://accu.org


Yes, the source_group command should be able to handle this. Try it
with "\\" and "/" separators, I can't remember which character is used
to split on for sub-folders within the project file. (Maybe either
works...?)


HTH,
David


More information about the CMake mailing list