diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2018-11-24 09:40:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 09:40:30 +0300 |
commit | 158c179beb3d06f110d665075d5e283e24592de6 (patch) | |
tree | 465d04c0ebbf573ddb0fa57ce2015bd44efd4ddf /README.md | |
parent | b35438dd77e4c2391391d7777c0a0b4cfd6e46f5 (diff) | |
parent | ba46cf2f3c9f253b84139f3b7229fe39fe5714ef (diff) |
Merge pull request #85 from ingjieye/master
Update CMakeLists.txt so tgbot-cpp can be used as a submodule
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 |