- Binary search tree(BST)
Build library from source
- Clone the repo
git clone https://github.com/Naakinn/BinTrees
- Specify your own installation paths in
CMakeLists.txt
, or use default ones(skip this step)
set(CMAKE_INSTALL_PREFIX <where-place-library-directory-and-header-directory>)
...
install(
TARGETS bintrees
LIBRARY DESTINATION <library-directory> # Placed in CMAKE_INSTALL_PREFIX directory
PUBLIC_HEADER DESTINATION <header-directory> # Placed in CMAKE_INSTALL_PREFIX directory
)
- Build the library
cmake -B_builds/shared -DBUILD_SHARED_LIBS=ON
sudo cmake --build _builds/shared --target install
Or install library from releases
- Downloand
tar.gz
archive
- Extract archive