$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
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