Boost logo

Boost-Build :

Subject: [Boost-build] Link test class to built library
From: Siim (siimannuk_at_[hidden])
Date: 2010-02-26 15:47:57


Hi!

I'm really new to Boost Build and I have a project which contains of a few
libraries, each library has test classes. Now, I can compile a library into
a dll (on Windows for example) using something like this:

project MyProject
    : requirements <include>include
    : build-dir bin
    ;

lib MyLib1 : [ glob src/*.cpp ] ;

How can I build and link the test classes (so they would use the library
includes and link against the just-built library)?

# Builds the tests
#exe test-mylub : test/test-mylib.cpp <- HOW?

Thanks!

-- 
View this message in context: http://old.nabble.com/Link-test-class-to-built-library-tp27723237p27723237.html
Sent from the Boost - Build mailing list archive at Nabble.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