On Mon, Nov 24, 2008 at 8:44 AM, Armin Berres <span dir="ltr">&lt;<a href="mailto:trigger@space-based.de">trigger@space-based.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, 24 Nov 08 08:38, Philip Lowman wrote:<br>
&gt; Works for me. &nbsp;Puts files in the root of the &quot;bar&quot; project:<br>
&gt;<br>
&gt; PROJECT(foo)<br>
&gt; SOURCE_GROUP(&quot;&quot; FILES bar.h bar.cc)<br>
&gt; ADD_EXECUTABLE(bar bar.h bar.cc)<br>
<br>
</div>Ah, ok. What I am trying is more or less the following:<br>
<br>
PROJECT(foo)<br>
source_group(&quot;&quot; REGULAR_EXPRESSION &quot;src/[^/]+$&quot;)<br>
ADD_EXECUTABLE(bar src/bar.h src/bar.cc)<br>
<br>
The above places bar.h and bar.cc in a folder called &quot;Header Files&quot;,<br>
source_group(&quot;.&quot; REGULAR_EXPRESSION &quot;src/[^/]+$&quot;) works as expected and<br>
places the two files in a &quot;.&quot; folder.<br>
Seems as if the combination of REGULAR_EXPRESSION+&quot;&quot; is not working.</blockquote></div><br>You guys have managed to steal my thread and get completely off topic.<br><br>Can anyone answer my original question please?<br>