Boost logo

Boost-Build :

From: Artem Alimarine (artem_at_[hidden])
Date: 2006-08-11 12:53:48


The code below seems to do what I wanted.

In the code below build of the executable hello triggers the tested
build of the library. The tests are exeuted automatically if the library
needs to be rebuilt.

lib hello_lib : ... ;
unit-test hello_test
     : hello_test.cpp
           hello_lib
         $(BOOST_ROOT)//unit_test_framework/<link>static
     ;

alias hello_lib_tested : hello_lib : : : <dependency>hello_test ;

exe hello : hello.cpp hello_lib_tested ;

Artem


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