mirror of
https://github.com/boostorg/compute.git
synced 2026-02-18 14:02:13 +00:00
37 lines
834 B
Plaintext
37 lines
834 B
Plaintext
# (C) Copyright 2015: Kyle Lutz
|
|
# 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 testing ;
|
|
|
|
lib boost_unit_test_framework ;
|
|
|
|
project
|
|
: source-location .
|
|
: requirements
|
|
<define>BOOST_ALL_NO_LIB=1
|
|
<cxxflags>-Wno-deprecated-declarations
|
|
<library>/boost/test//boost_unit_test_framework
|
|
;
|
|
|
|
rule test_all
|
|
{
|
|
local all_rules = ;
|
|
|
|
for local fileb in [ glob *.cpp ]
|
|
{
|
|
all_rules += [ run $(fileb)
|
|
:
|
|
:
|
|
:
|
|
<link>shared:<define>BOOST_TEST_DYN_LINK=1
|
|
<host-os>linux:<linkflags>"-lOpenCL"
|
|
<host-os>darwin:<linkflags>"-framework OpenCL"
|
|
] ;
|
|
}
|
|
|
|
return $(all_rules) ;
|
|
}
|
|
|
|
test-suite compute : [ test_all r ] : ;
|