[CMake] ALL_BUILD and ZERO_CHECK

Armin Berres trigger at space-based.de
Mon Nov 24 09:44:39 EST 2008


On Mon, 24 Nov 08 08:38, Philip Lowman wrote:
> Works for me.  Puts files in the root of the "bar" project:
> 
> PROJECT(foo)
> SOURCE_GROUP("" FILES bar.h bar.cc)
> ADD_EXECUTABLE(bar bar.h bar.cc)

Ah, ok. What I am trying is more or less the following:

PROJECT(foo)
source_group("" REGULAR_EXPRESSION "src/[^/]+$")
ADD_EXECUTABLE(bar src/bar.h src/bar.cc)

The above places bar.h and bar.cc in a folder called "Header Files",
source_group("." REGULAR_EXPRESSION "src/[^/]+$") works as expected and
places the two files in a "." folder.
Seems as if the combination of REGULAR_EXPRESSION+"" is not working.

/Armin


More information about the CMake mailing list