Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-09-22 14:25:41


Jason Stewart <jstewart_at_[hidden]> writes:

>>
>>It would help if you would post your Jamfiles and the error message
>>you're seeing.
>
> Ok, I guess I should have done that the first time but I didn't
> because I *know* it's not configured correctly, I'm just not sure how
> it should be. I have not told it anywhere that it needs to link
> against boost_unit_test_framework. Anyway, I have a project tree like so:
>
> \myproject
> \Geodesy
> \Ptolemy
>
> In the project root directory I have the following files:
>
> --- Jamfile ---
> project myproject
> : requirements <include>$(PROJECT_ROOT)
> <include>$(BOOST_ROOT)/include/boost-1_33/
> <library-path>$(BOOST_ROOT)/lib
> : build-dir bin
> ;
>
> import testing ;
>
> --- project-root.jam ---
> path-constant PROJECT_ROOT : . ;
> path-constant BOOST_ROOT : c:/boost ;

Well, you should use Jamroot, but that aside, add

use-project /boost : $(BOOST_ROOT) ;

>
>
> In the Ptolemy directory I have the following:
>
> --- Jamfile ---
> project Ptolemy ;
>
> unit-test test : [ glob test/*.cpp ] Ptolemy
>
> lib Ptolemy : [ glob *.cpp ] ../Geodesy//Geodesy

Add

/boost/test//boost_unit_test_framework

right here.

> : <link>static
> ;

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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