<div>I have this now in my CMakeLists.txt</div>
<div> </div>
<div>SOURCE_GROUP("CMake Makefile" FILES CMakeLists.txt)<br>SOURCE_GROUP("Header Files" REGULAR_EXPRESSION .*\.h)<br>SOURCE_GROUP("Source Files" REGULAR_EXPRESSION .*\.cxx|.*\.cpp}<br>SOURCE_GROUP("Data Files" REGULAR_EXPRESSION .*/data/.*)
<br clear="all"></div>
<div> ADD_EXECUTABLE(HelloWorld<br> HelloWorld.cxx<br> ../data/earth.jpg)</div>
<div> </div>
<div>But it doesn't fits very well. :-(</div>
<div>I wish to select only files not contained in directories, and *.c files</div>
<div>capp.c</div>
<div>cxxapp.cxx</div>
<div>cppapp.cpp</div>
<div> </div>
<div>but not:</div>
<div> </div>
<div>/dir1/capp.c</div>
<div>/dir1/dir2/cxxapp.cxx</div>
<div>
<div>../cppapp.cpp</div></div>
<div>cnoapp.cxp</div>
<div>cnoapp.c.ext</div>
<div>cnoapp.cxx.rarefile.ext</div>
<div> </div>
<div>I have tried other "regex" but I don't known if I am wrong or CMake not supports ALL kind of regular expressions.</div>
<div> </div>
<div>Thanks.<br>-- <br>Un saludo,<br>"Carlos Capdepón" <<a href="mailto:carlos.capdepon@gmail.com">carlos.capdepon@gmail.com</a>> </div>