From 518cad00e35b5da52629955825403301e74e49d2 Mon Sep 17 00:00:00 2001 From: melode11 Date: Wed, 8 Apr 2015 15:28:18 +0800 Subject: [PATCH] update cmake instructions --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 03833dc..f24b7fc 100755 --- a/README.md +++ b/README.md @@ -19,9 +19,17 @@ By virtue of being written in C++, this client works in several different platfo 1. Install boost, see [Boost setup](#boost_setup) section. 2. Use `git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git` to clone your local repo. 3. Run `cmake -DBOOST_PATH:STRING= ./` -4. Run `make`(if makefile generated) or open generated project (if project file generated) to build. +4. Run `make install`(if makefile generated) or open generated project (if project file generated) to build. 5. Include `sio_client.h` in your client code where you want to use it. +*If you're using boost without install,you can specify `boost include dir` and `boost lib dir` separately by:* +```bash +cmake +-DBOOST_INCLUDE:STRING= +-DBOOST_LIB:STRING= +./ +``` + ### Without CMake 1. Install boost, see [Boost setup](#boost_setup) section. 2. Use `git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git` to clone your local repo.