-
Notifications
You must be signed in to change notification settings - Fork 20
st_tree installation and building
There are two ways to obtain the latest st_tree source. The first is to directly clone the st_tree git repository:
$ git clone git://github.com/erikerlandson/st_tree.git
The second is to download a tarball or zip-file:
tarball
zipfile
More download options, including specific versions, are available here
The st_tree tree container and its components are all template classes, and so installing st_tree is easy: you can move the files …/st_tree/include/st_tree*.h to an include file already in your build path, or add the directory …/st_tree/include to your build path.
Building the source repository is not required, since st_tree::tree<> and its components are all templates. However, you can build the unit test harness and the examples using CMake:
$ cd path/to/st_tree
$ cmake .
$ make
The testing harness is written using the boost unit testing library. It will only build if CMake detects the boost libraries.