• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2012 Karsten Ahnert
2# Copyright 2013 Mario Mulansky
3# Distributed under the Boost Software License, Version 1.0.
4# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6# bring in rules for testing
7
8
9import testing ;
10
11use-project boost : $(BOOST_ROOT) ;
12VEXCL_INCLUDE = /home/karsten/boost/testing/vexcl ;
13OPENCL_INCLUDE = /usr/local/cuda/include ;
14#OPENCL_INCLUDE = /usr/include ;
15
16project
17    : requirements
18      <library>/boost/test//boost_unit_test_framework
19      <define>BOOST_ALL_NO_LIB=1
20      <include>$(VEXCL_INCLUDE)
21      <include>$(OPENCL_INCLUDE)
22      <cxxflags>-std=c++0x
23      <library>/boost//system/
24    ;
25
26lib OpenCL : : <name>OpenCL <link>shared ;
27
28test-suite "odeint"
29    :
30    [ run lorenz.cpp OpenCL ]
31    [ run norm_inf.cpp OpenCL ]
32    : <testing.launcher>valgrind
33    :
34    : <link>shared:<define>BOOST_TEST_DYN_LINK=1
35    ;