[CMake] ALL_BUILD and ZERO_CHECK

Philip Lowman philip at yhbt.com
Mon Nov 24 23:03:18 EST 2008


On Mon, Nov 24, 2008 at 9:44 AM, Armin Berres <trigger at space-based.de>wrote:

> 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)


Post a bug report and for a workaround use the FILES argument I guess?

SET(bar_PUBLIC_HDRS src/bar.h)
SET(bar_SRCS src/bar.cc)

SET(bar_FILES ${bar_PUBLIC_HDRS} ${bar_SRCS})
source_group("" FILES ${bar_FILES})
add_executable(bar ${bar_FILES})


-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081124/c022ca56/attachment.htm>


More information about the CMake mailing list