See the cmake function SOURCE_GROUP (search for other messages regarding this function on this mailing list)...<br><br>C:\&gt;&quot;C:\Program Files\CMake 2.4\bin\cmake.exe&quot; --help-command SOURCE_GROUP<br>cmake version 
2.4-patch 7<br>&nbsp; SOURCE_GROUP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Define a grouping for sources in the makefile.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SOURCE_GROUP(name [REGULAR_EXPRESSION regex] [FILES src1 src2 ...])<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Defines a group into which sources will be placed in project files.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is mainly used to setup file tabs in Visual Studio.&nbsp; Any file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; whose name is listed or matches the regular expression will be placed<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in this group.&nbsp; If a file matches multiple groups, the LAST group that
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; explicitly lists the file will be favored, if any.&nbsp; If no group<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; explicitly lists the file, the LAST group whose regular expression<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; matches the file will be favored.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The name of the group may contain backslashes to specify subgroups:
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SOURCE_GROUP(outer\\inner ...)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For backwards compatibility, this command is also supports the format:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SOURCE_GROUP(name regex)<br><br><br>HTH,<br>David<br><br><br><div><span class="gmail_quote">
On 7/24/07, <b class="gmail_sendername">Sergei Riaguzov</b> &lt;<a href="mailto:riaguzov@gmail.com">riaguzov@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br><br>How can I emulate &quot;Add folder&quot; MSVS functionality with CMake? I want to be able to add a folder without adding another executable or anything like that.<br>
<br>_______________________________________________<br>CMake mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">
http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>