InstallationΒΆ
This is a header only library. It is used by doing direct include in the source / header files.
See Tutorial for usage after correct installation.
Conan:
NOTE: Conan package installation is done inside a subdirectory for proper namespacing. All header includes have to be prefixed with detangled/.
Using conan for setup. After setting up conan, the following steps are required.
Setup the conan remote repository from which this header only library will be pulled.
$ conan remote add ghochee https://api.bintray.com/conan/ghochee/conan $
To add dependency to the package
project_dir$ cat conanfile.txt [requires] tree/0.1.0@ghochee/alpha project_dir$
To install the package
project_dir$ mkdir .conan/ project_dir$ cd .conan project_dir$ conan install .. -r ghochee project_dir$
CMake example:
include(${CMAKE_SOURCE_DIR}/.conan/conanbuildinfo.cmake)
conan_basic_setup()
Git:
$ git clone https://github.com/ghochee/tree
Then add <project-clone-path>/include to the include paths during compilation.
CMake example:
target_include_directories(<target> PRIVATE <project-clone-path>/include)