• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Boost.Geometry (aka GGL, Generic Geometry Library)
2#
3# Copyright (c) 2013 Mateusz Loskot, London, UK.
4#
5# Use, modification and distribution is subject to the Boost Software License,
6# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7# http://www.boost.org/LICENSE_1_0.txt)
8
9# Usage:
10# Build as optimised for proper benchmarking:
11#    b2 variant=release threading=multi
12#    b2 variant=release threading=multi link=static runtime-link=static
13#
14# Set GLUT_ROOT to installation prefix of GLUT or, for Windows,
15# it may be all-in-one directory with GLUT header and binaries.
16
17import os ;
18
19project boost-geometry-index-example
20    : requirements
21        <implicit-dependency>/boost//headers
22    ;
23
24local GLUT_ROOT = [ os.environ GLUT_ROOT ] ;
25if $(GLUT_ROOT)
26{
27    local glut_name = glut ;
28    if [ os.name ] = NT
29    {
30        glut_name = glut32 ;
31    }
32
33 lib glut
34    :
35    :
36    <name>$(glut_name)
37    <search>$(GLUT_ROOT)
38    <search>$(GLUT_ROOT)/lib
39    :
40    :
41    <include>$(GLUT_ROOT)
42    <include>$(GLUT_ROOT)/include
43    ;
44}
45
46exe random_test : random_test.cpp ;
47link serialize.cpp /boost//serialization : ;
48link benchmark.cpp /boost//chrono : <threading>multi ;
49link benchmark2.cpp /boost//chrono : <threading>multi ;
50link benchmark3.cpp /boost//chrono : <threading>multi ;
51link benchmark_experimental.cpp  /boost//chrono : <threading>multi ;
52if $(GLUT_ROOT)
53{
54    link glut_vis.cpp glut ;
55}
56