On Mon, Nov 24, 2008 at 8:44 AM, Armin Berres <span dir="ltr"><<a href="mailto:trigger@space-based.de">trigger@space-based.de</a>></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>
> Works for me. Puts files in the root of the "bar" project:<br>
><br>
> PROJECT(foo)<br>
> SOURCE_GROUP("" FILES bar.h bar.cc)<br>
> 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("" REGULAR_EXPRESSION "src/[^/]+$")<br>
ADD_EXECUTABLE(bar src/bar.h src/bar.cc)<br>
<br>
The above places bar.h and bar.cc in a folder called "Header Files",<br>
source_group("." REGULAR_EXPRESSION "src/[^/]+$") works as expected and<br>
places the two files in a "." folder.<br>
Seems as if the combination of REGULAR_EXPRESSION+"" 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>