summaryrefslogtreecommitdiff
path: root/Help/command/source_group.rst
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2013-10-15 11:17:36 -0400
committerBrad King <brad.king@kitware.com>2013-10-15 14:12:03 -0400
commitf051814ed0e63badbfd68049354f36259dbf4b49 (patch)
treef4e6f885f86c882d723a7dd53d2b702d0c7fdffb /Help/command/source_group.rst
parente94958e99c4dec26c86ce8b76d744c04ba960675 (diff)
downloadcmake-f051814ed0e63badbfd68049354f36259dbf4b49.tar.gz
Convert builtin help to reStructuredText source files
Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
Diffstat (limited to 'Help/command/source_group.rst')
-rw-r--r--Help/command/source_group.rst28
1 files changed, 28 insertions, 0 deletions
diff --git a/Help/command/source_group.rst b/Help/command/source_group.rst
new file mode 100644
index 0000000000..77bb9ad92e
--- /dev/null
+++ b/Help/command/source_group.rst
@@ -0,0 +1,28 @@
+source_group
+------------
+
+Define a grouping for sources in the makefile.
+
+::
+
+ source_group(name [REGULAR_EXPRESSION regex] [FILES src1 src2 ...])
+
+Defines a group into which sources will be placed in project files.
+This is mainly used to setup file tabs in Visual Studio. Any file
+whose name is listed or matches the regular expression will be placed
+in this group. If a file matches multiple groups, the LAST group that
+explicitly lists the file will be favored, if any. If no group
+explicitly lists the file, the LAST group whose regular expression
+matches the file will be favored.
+
+The name of the group may contain backslashes to specify subgroups:
+
+::
+
+ source_group(outer\\inner ...)
+
+For backwards compatibility, this command also supports the format:
+
+::
+
+ source_group(name regex)