Boost logo

Boost Users :

From: Johan Nilsson (johan.nilsson_at_[hidden])
Date: 2005-05-04 05:49:37


"Robert Cober" <bobcober_at_[hidden]> wrote in message
news:a0a8487f05050316257e09b177_at_mail.gmail.com...
>I am trying to learn how to use boost.test.
>
> I have a solution with two projects in it:
> MyApp - this is the application I am building
> Test - this is the project for the test framework.
>
> Everything builds ok. Simple tests run fine, errors can be clicked
> on, all is well.
>
> My question has to do with how the Test project can refer to the code
> within MyApp. If I want to refer a class or function defined in MyApp, do
> I have to manually add the appropriate .h and .obj files to Test? Is
> there
> any way to have Test be able to automatically refer to the files of other
> projects within this workspace?

[a bit off-topic, perhaps]

As a general advice, implement all your domain-specific classes in a
separate library (lib or dll) and use that library from the test and
application projects. The only thing you then need to do in VS.NET 2003 is
to add a dependency on the library from the other projects - the library is
then automatically used when linking.

HTH // Johan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net