Boost Interest :
Subject: Re: [Boost-cmake] Testing dependencies
From: Doug Gregor (doug.gregor_at_[hidden])
Date: 2009-06-11 12:23:01
On Thu, Jun 11, 2009 at 5:50 AM, Brad King<brad.king_at_[hidden]> wrote:
> Instead we should have one add_custom_target() to do all the tests
> for a single library (e.g. function). Within the target there would
> be file-level rules created by add_custom_command(). This will
> translate to one .vcproj file per library that contains a bunch of
> rules to drive the tests (with proper dependencies).
FWIW, I put in a hack for this already. The "libname-test" target
depends on all of the test binaries for the library libname, then runs
CTest with the appropriate regex for that library.
It would be relatively easy to build a "libname-test-with-deps" target
for each library that also tests libraries depending (directly or
indirectly) on the library libname. We have all of the dependency