Boost logo

Boost-Build :

Subject: Re: [Boost-build] [glob *.cpp] excluding main.cpp
From: Darren Garvey (lists.drrngrvy_at_[hidden])
Date: 2011-04-06 10:06:15


On 6 April 2011 11:06, Andrej van der Zee <andrejvanderzee_at_[hidden]> 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?
>

Try:

lib soname
        : [ glob *.cpp : main.cpp ]
        ;

See:
http://www.boost.org/doc/libs/1_46_1/doc/html/bbv2/reference.html#bbv2.reference.rules

Cheers,
Darren



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