2012-07-18 04:25:01 +04:00
|
|
|
This library is a C++ template library and, as such, there is no
|
2013-01-23 03:57:34 +04:00
|
|
|
library to build and install. Copy the .h files and use them!
|
2012-07-18 04:25:01 +04:00
|
|
|
|
2013-01-25 12:46:48 +04:00
|
|
|
See http://code.google.com/p/cpp-btree/wiki/UsageInstructions for
|
|
|
|
details.
|
|
|
|
|
2012-07-18 04:25:01 +04:00
|
|
|
----
|
|
|
|
|
|
|
|
To build and run the provided tests, however, you will need to install
|
2013-01-23 03:57:34 +04:00
|
|
|
CMake, the Google C++ Test framework, and the Google flags package.
|
2012-07-18 04:25:01 +04:00
|
|
|
|
2013-01-25 12:46:48 +04:00
|
|
|
Download and install CMake from http://www.cmake.org
|
2012-07-18 04:25:01 +04:00
|
|
|
|
2013-02-09 10:56:25 +04:00
|
|
|
Download and build the GoogleTest framework from
|
|
|
|
http://code.google.com/p/googletest
|
2012-07-18 04:25:01 +04:00
|
|
|
|
2013-01-25 12:46:48 +04:00
|
|
|
Download and install gflags from https://code.google.com/p/gflags
|
2013-01-23 03:57:34 +04:00
|
|
|
|
2013-02-09 10:56:25 +04:00
|
|
|
Set GTEST_ROOT to the directory where GTEST was built.
|
|
|
|
Set GFLAGS_ROOT to the directory prefix where GFLAGS is installed.
|
|
|
|
|
2012-07-18 04:25:01 +04:00
|
|
|
export GTEST_ROOT=/path/for/gtest-x.y
|
2013-02-09 10:56:25 +04:00
|
|
|
export GFLAGS_ROOT=/opt
|
2012-07-18 04:25:01 +04:00
|
|
|
|
|
|
|
cmake . -Dbuild_tests=ON
|
2013-02-09 10:56:25 +04:00
|
|
|
|
|
|
|
For example, to build on a Unix system with the clang++ compiler,
|
|
|
|
|
|
|
|
export GTEST_ROOT=$(HOME)/src/googletest
|
|
|
|
export GFLAGS_ROOT=/opt
|
|
|
|
cmake . -G "Unix Makefiles" -Dbuild_tests=ON -DCMAKE_CXX_COMPILER=clang++
|