From 524ccf3d8bb010b19e1c551abc323b2d3fd7d53f Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Fri, 31 May 2013 14:03:32 +0000 Subject: [PATCH] [geometry] Configure build for GLUT-based visualiser of spatial index [SVN r84575] --- index/example/Jamfile.v2 | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/index/example/Jamfile.v2 b/index/example/Jamfile.v2 index 53b3a4877..55bf3004e 100644 --- a/index/example/Jamfile.v2 +++ b/index/example/Jamfile.v2 @@ -6,17 +6,49 @@ # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) -# Usage: build as optimised for proper benchmarking: +# Usage: +# Build as optimised for proper benchmarking: # b2 variant=release threading=multi # b2 variant=release threading=multi link=static runtime-link=static +# +# Set GLUT_ROOT to installation prefix of GLUT or, for Windows, +# it may be all-in-one directory with GLUT header and binaries. + +import os ; project boost-geometry-index-example : requirements /boost//headers ; +local GLUT_ROOT = [ os.environ GLUT_ROOT ] ; +if $(GLUT_ROOT) +{ + local glut_name = glut ; + if [ os.name ] = NT + { + glut_name = glut32 ; + } + + lib glut + : + : + $(glut_name) + $(GLUT_ROOT) + $(GLUT_ROOT)/lib + : + : + $(GLUT_ROOT) + $(GLUT_ROOT)/include + ; +} + exe random_test : random_test.cpp ; exe benchmark : benchmark.cpp /boost//chrono ; exe benchmark2 : benchmark2.cpp /boost//chrono ; exe benchmark3 : benchmark3.cpp /boost//chrono ; exe benchmark_experimental : benchmark_experimental.cpp /boost//chrono ; +if $(GLUT_ROOT) +{ + exe glut_vis : glut_vis.cpp glut ; +} \ No newline at end of file