Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:38:17 -05:00
parent 45eec41c29
commit 9519349ab9
4 changed files with 28 additions and 9 deletions

View File

@ -1,9 +0,0 @@
# copyright John Maddock 2003
# Use, modification and distribution are subject to the
# Boost Software License, Version 1.0. (See accompanying file
# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# bring in the rules for testing
import testing ;
build-project test ;

20
build.jam Normal file
View File

@ -0,0 +1,20 @@
# Copyright René Ferdinand Rivera Morell 2023
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import project ;
project /boost/static_assert
: common-requirements
<source>/boost/config//boost_config
<include>include
;
explicit
[ alias boost_static_assert ]
[ alias all : boost_static_assert example test ]
;
call-if : boost-library static_assert
;

View File

@ -6,6 +6,10 @@
# bring in the rules for testing
import testing ;
project : requirements
<source>/boost/type_traits//boost_type_traits
;
#run static_assert_example_1.cpp ;
run static_assert_example_2.cpp ;
run static_assert_example_3.cpp ;

View File

@ -6,6 +6,10 @@
# bring in the rules for testing
import testing ;
project : requirements
<source>/boost/type_traits//boost_type_traits
;
run static_assert_test.cpp ;
compile-fail static_assert_test_fail_1.cpp ;
compile-fail static_assert_test_fail_2.cpp ;