-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
47 lines (35 loc) · 1.8 KB
/
Copy pathINSTALL
File metadata and controls
47 lines (35 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Installation Instructions
*************************
Library installation
====================
The library does not require installation. It consists of a set of
C++ header files (all in the directory "include"). To use the library
facilities, simply make sure that the header files can be found in the
include search path (either by placing it with the system includes, or
using a compiler option to add it to the include search path).
Testing
=======
A minimal test suite for the range streaming facilities is provided.
It is not a full or exhaustive test suite - it is merely intended to
confirm proper behaviour in common situations.
The test suite requires Google Test <https://code.google.com/p/googletest/>.
A minimal version of Google Test is included in the "test/gtest" folder,
using fused files. (See <https://code.google.com/p/googletest/wiki/AdvancedGuide#Fusing_Google_Test_Source_Files>
for more information.)
To build the test program, simply run "make" in the "test" folder.
Running "make check" will build the test program (if necessary), then
run it.
The test program requires C++11 (naturally), so it may be necessary
to provide special command line options. The easiest way to do this is
to add the required options the environment variable CXXFLAGS:
export CXXFLAGS="$CXXFLAGS -std=c++11"
You can add whatever other options you wish, of course.
Once you've done that, "make check" just does the right thing:
make check
### Testing with Boost ###
If you have Boost, you can do some extra tests that use Boost.Range.
By default, these tests are not included. If you want to add them, you
must define a variable called HAVE_BOOST. For example:
make check HAVE_BOOST=1
(Of course, you can also export an environment variable called
HAVE_BOOST - as shown with CXXFLAGS above - if you wish.)