erikerlandson / st_tree

A fast and flexible c++ template class for tree data structures
https://github.com/erikerlandson/st_tree/wiki
Apache License 2.0
96 stars 20 forks source link

Adding cmake installation instructions #20

Closed emmenlau closed 5 years ago

emmenlau commented 5 years ago

This PR adds installation instructions for cmake. With this PR, users can use

make install

to install the headers. Afterwards they can use the library in downstream projects with modern cmake syntax like:

find_package(st_tree REQUIRED)
[...]
target_link_libraries(<target> st_tree)

With modern cmake, linking this interface library passes transitively all cmake properties (like include paths and build flags) from st_tree to the downstream target.

erikerlandson commented 5 years ago

@emmenlau thanks for this! I'll take a look at it ASAP