On 6 April 2011 11:06, Andrej van der Zee <andrejvanderzee@gmail.com> 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