From 46597e393dab5ae2c2ec208ea6d2426bde1a4e1e Mon Sep 17 00:00:00 2001 From: Gabriel Jablonski Date: Tue, 23 Nov 2021 19:44:34 -0300 Subject: [PATCH] docs: add vcpkg installation instructions (#252) --- INSTALL.md | 14 ++++++++++++++ README.md | 1 + 2 files changed, 15 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 49fc262..b70ef5c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -11,3 +11,17 @@ 2. Add `./lib/asio/asio/include`, `./lib/websocketpp` and `./lib/rapidjson/include` to headers search path. 3. Include all files under `./src` in your project, add `sio_client.cpp`,`sio_socket.cpp`,`internal/sio_client_impl.cpp`, `internal/sio_packet.cpp` to source list. 4. Include `sio_client.h` in your client code where you want to use it. + +### With vcpkg + +You can download and install the Socket.IO C++ client using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager: + +```bash +git clone https://github.com/Microsoft/vcpkg.git +cd vcpkg +./bootstrap-vcpkg.sh +./vcpkg integrate install +vcpkg install socket-io-client +``` + +The Socket.IO client port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. diff --git a/README.md b/README.md index 5a68967..63a7804 100755 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Note: Only the WebSocket transport is currently implemented (no fallback to HTTP * [With CMAKE](./INSTALL.md#with-cmake) * [Without CMAKE](./INSTALL.md#without-cmake) +* [With VCPKG](./INSTALL.md#with-vcpkg) * [iOS and OS X](./INSTALL_IOS.md) * Option 1: Cocoapods * Option 2: Create a static library