|
Boost-Build : |
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-05-27 08:32:51
W Eryk Wolski wrote:
> Dear bjam users,
>
> Insteat of executing
>
> g++ -lcppunit ComplexNumberTest.cpp UnitTest.cpp -o UnitTest
>
> I want to use bjam to compile the unit tests.
>
> All includes and libaries are located in /usr/include and /usr/lib
>
> In the Jamroot file in the test directory
> I specified
>
> exe UnitTest : [ glob *.cpp ];
>
> How to specify the -lcppunit compiler option; that the cpp files should be
> linked againt the libccpunit library?
>
> I made several tries with //cppunit <lib> <find-library> etc. etc. but could
> not get it compiled.
Does
http://www.boost.org/boost-build2/doc/html/bbv2/tutorial/prebuilt.html
help? I'd expect something like:
lib cppunit ;
exe UnitTest : [ glob *.cpp ] cppunit ;
to just work.
- Volodya
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