[CMake] Visual Studio project layout

David Cole david.cole at kitware.com
Tue Dec 14 07:16:15 EST 2010


Actually, it's just "FOLDER".

  http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:FOLDER

Set the target property FOLDER on the targets that you want to put in
folders.

Then activate it by setting the global property USE_FOLDERS to ON.

  http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_global:USE_FOLDERS

The feature is off by default because Visual Studio Express does not support
solution folders.


HTH,
David


On Tue, Dec 14, 2010 at 5:43 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:

> > I'm trying to reduce the number of toplevel projects in my CMake
> > generated Visual Studio solution. The idea is to group some targets in
> > solution paths. The layout should look like this:
> >
> > Solution
> > - Target 1
> > - Foo
> >      + Target 2
> >      + Target 3
> > - Target 4
> > ...
> >
> > Is there a way to achieve this with CMake?
>
> Search for property SOLUTION_FOLDER, introduced in 2.8.3.
>
> Eike
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101214/55ed848f/attachment.htm>


More information about the CMake mailing list