source_group.rst 799 B

12345678910111213141516171819202122232425262728
  1. source_group
  2. ------------
  3. Define a grouping for sources in the makefile.
  4. ::
  5. source_group(name [REGULAR_EXPRESSION regex] [FILES src1 src2 ...])
  6. Defines a group into which sources will be placed in project files.
  7. This is mainly used to setup file tabs in Visual Studio. Any file
  8. whose name is listed or matches the regular expression will be placed
  9. in this group. If a file matches multiple groups, the LAST group that
  10. explicitly lists the file will be favored, if any. If no group
  11. explicitly lists the file, the LAST group whose regular expression
  12. matches the file will be favored.
  13. The name of the group may contain backslashes to specify subgroups:
  14. ::
  15. source_group(outer\\inner ...)
  16. For backwards compatibility, this command also supports the format:
  17. ::
  18. source_group(name regex)