diff options
author | hannibal <770876997@qq.com> | 2018-11-14 10:47:41 +0800 |
---|---|---|
committer | hannibal <770876997@qq.com> | 2018-11-14 10:47:41 +0800 |
commit | ef7800aff32d8558f155ee26adfdb71c8e35f93a (patch) | |
tree | 918fa73dfc801425d80d83bb1bcbe59923dfbea6 /README.md | |
parent | b35438dd77e4c2391391d7777c0a0b4cfd6e46f5 (diff) |
add_subdirectory(tgbot-cpp)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |