[CMake] ALL_BUILD and ZERO_CHECK

Philip Lowman philip at yhbt.com
Mon Nov 24 08:38:43 EST 2008


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

> On Sat, 22 Nov 08 12:47, Philip Lowman wrote:
> > On Sat, Nov 22, 2008 at 8:12 AM, Armin Berres <trigger at space-based.de
> >wrote:
> >
> > > PS:
> > > What I'd reallylike to know is if it is possible to prevent the
> creation
> > > of the Source/Header folders. With source groups it is just possible to
> put
> > > files in a subdirectory, but I want some files directly in the project
> > > root.
> >
> >
> > For this, simply set the folder name to ""
>
> That't the behaviour I would expect, but sadly it doesn't work. I just
> checked with CMake 2.6.2 and "" leads to created Source and Header
> folders.


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)

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


More information about the CMake mailing list