1 # (C) Copyright 2015: Kyle Lutz
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 lib boost_unit_test_framework ;
12 <define>BOOST_ALL_NO_LIB=1
13 <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
14 <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
15 <toolset>msvc:<define>NOMINMAX
16 <toolset>msvc:<cxxflags>/wd4003 # Not enough actual parameters for a BOOST_PP macro
17 <toolset>msvc:<cxxflags>/wd4244 # Warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data
18 <toolset>msvc:<cxxflags>/wd4305 # Warning C4305: 'initializing': truncation from 'double' to 'float'
19 <toolset>msvc:<cxxflags>/wd4800 # Warning C4800: 'uint32_t' : forcing value to bool 'true' or 'false' (performance warning)
20 <toolset>msvc:<cxxflags>/wd4838 # Warning C4838: conversion from 'double' to 'float' requires a narrowing conversion
21 <library>/boost/test//boost_unit_test_framework
28 for local fileb in [ glob *.cpp ]
30 all_rules += [ run $(fileb)
34 <link>shared:<define>BOOST_TEST_DYN_LINK=1
35 <host-os>linux:<linkflags>"-lOpenCL"
36 <host-os>darwin:<linkflags>"-framework OpenCL"
37 <host-os>freebsd:<linkflags>"-lOpenCL"
44 test-suite compute : [ test_all r ] : ;