Skip to content

Commit

Permalink
- Add auxiliar rule exe-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardocosme committed Jun 16, 2017
1 parent bd0a2d5 commit 04a6797
Showing 1 changed file with 20 additions and 35 deletions.
55 changes: 20 additions & 35 deletions Jamroot
Original file line number Diff line number Diff line change
Expand Up @@ -31,46 +31,31 @@ project mapbox_variant
<threading>single
;

exe variant-test
: test/bench_variant.cpp
: <variant>release:<cxxflags>-Wweak-vtables
;
explicit variant-test ;

exe binary-visitor-test
: test/binary_visitor_test.cpp
;
explicit binary-visitor-test ;

exe recursive-wrapper-test
: test/recursive_wrapper_test.cpp
;
explicit recursive-wrapper-test ;

exe unique-ptr-test
: test/unique_ptr_test.cpp
;
explicit unique-ptr-test ;

exe reference_wrapper_test
: test/reference_wrapper_test.cpp
;
explicit reference_wrapper_test ;
rule exe-test ( name : reqs * : deps * )
{
exe $(name)
: test/$(name).cpp
: $(reqs)
: $(deps)
;
explicit $(name) ;
}

exe lambda_overload_test
: test/lambda_overload_test.cpp
exe-test bench_variant
: <variant>release:<cxxflags>-Wweak-vtables
;
explicit lambda_overload_test ;

exe hashable_test
: test/hashable_test.cpp
;
explicit hashable_test ;
exe-test binary_visitor_test ;
exe-test recursive_wrapper_test ;
exe-test unique_ptr_test ;
exe-test reference_wrapper_test ;
exe-test lambda_overload_test ;
exe-test hashable_test ;

install out
: variant-test
binary-visitor-test
unique-ptr-test
: bench_variant
binary_visitor_test
unique_ptr_test
reference_wrapper_test
lambda_overload_test
hashable_test
Expand Down

0 comments on commit 04a6797

Please sign in to comment.