Boost logo

Boost-Build :

Subject: Re: [Boost-build] [glob *.cpp] excluding main.cpp
From: Robert Collyer (rcollyer_at_[hidden])
Date: 2011-04-06 09:58:28


Andrej,
glob accepts a second parameter, a list of files/patterns to exclude.
So, to exclude main.cpp you would use [ glob *.cpp : main.cpp ]

Rob Collyer

On 4/6/11 5:06 AM, Andrej van der Zee wrote:
> Hi,
>
> Sometimes I write a library with many files and want to add a main.cpp
> in the same directory for quick testing. Instead of listing all the
> *.cpp files for the lib explicitly, would there be a way to specify
> all *.cpp files except for main.cpp?
>
> For example:
>
> lib soname
> : [ glob *.cpp ] # exclude main.cpp
> ;
>
> Cheers,
> Andrej
> _______________________________________________
> Unsubscribe& other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk