|
Boost-Build : |
Subject: Re: [Boost-build] unit-test rule with different launcher
From: Renaud Lepère (lepere.renaud_at_[hidden])
Date: 2013-10-05 18:28:13
>> The only workaround i found was to create an obj target for all the .cpp
>> obj runner : runner.cpp ;
>> obj test_angle : test_angle.cpp ;
>> and then :
>> unit-test run_test : .//runner .//test_angle .//utf ;
>> unit-test report_test : .//runner .//test_angle .//utf :
>>
>> Is there a more elegant / better way to do it ?
>>
>
> You could build the executable separately, instead
> of building the object files separately:
>
> exe run_test.exe : runner.cpp test_angle.cpp utf ;
> unit-test run_test : run_test.exe ;
>
> In Christ,
> Steven Watanabe
Thanks a lot this is a good solution for me. Building the executable
separately is really better since i had quite a lot of cpp file. I did
not realize that the unit-test rule can accept an executable target.
Renaud
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