From ef7800aff32d8558f155ee26adfdb71c8e35f93a Mon Sep 17 00:00:00 2001 From: hannibal <770876997@qq.com> Date: Wed, 14 Nov 2018 10:47:41 +0800 Subject: add_subdirectory(tgbot-cpp) --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index fc7e330..c2345a8 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ int main() { All other samples are located [here](samples). -## Library compilation +## Dependencies Firstly you need to install some dependencies such as Boost and build tools such as CMake. On Debian-based distibutives you can do it with these commands: ```sh @@ -66,14 +66,20 @@ sudo apt-get install g++ make binutils cmake libssl-dev libboost-system-dev ``` If you want to use curl-based http client `CurlHttpClient`, you also need to install `libcurl4-openssl-dev` package. -To compile the library execute this commands: +## Library installation + +If you want to install the library system-wide: + ```sh -cd /path/where/you/have/cloned/the/library/repository +git clone https://github.com/reo7sp/tgbot-cpp +cd tgbot-cpp cmake . make -j4 sudo make install ``` +Or you can treat this repository as a submodule of your project, for example, see [echobot-submodule](samples/echobot/CMakeLists.txt) + ## Specific library installation notes ### Docker -- cgit v1.2.3