summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/FOLDER.rst
blob: 3155d9052afd758a94dee5e558cd5c7c0b07c4ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FOLDER
------

Set the folder name. Use to organize targets in an IDE.

Targets with no ``FOLDER`` property will appear as top level entities in
IDEs like Visual Studio.  Targets with the same ``FOLDER`` property value
will appear next to each other in a folder of that name.  To nest
folders, use ``FOLDER`` values such as 'GUI/Dialogs' with '/' characters
separating folder levels.

This property is initialized by the value of the variable
:variable:`CMAKE_FOLDER` if it is set when a target is created.

The global property :prop_gbl:`USE_FOLDERS` must be set to ON, otherwise
the ``FOLDER`` property is ignored.