forked from socketio/socket.io-client-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Curt Krone edited this page Aug 16, 2017
·
2 revisions
Welcome to the socket.io-client-cpp wiki!
I'm choosing to make a build directory for cmake output, rather than create the makefiles right in the root directory as the readme suggests. We need to tell the build where to find Boost and OpenSSL. So we can build the library with something like:
mcd build
cmake -DBOOST_INCLUDEDIR=/usr/local/include/boost -DBOOST_LIBRARYDIR=/usr/local/lib -DBOOST_VER:STRING=1.63.0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ ..
And the tests with:
mcd test
cmake -DBOOST_INCLUDEDIR=/usr/local/include/boost -DBOOST_LIBRARYDIR=/usr/local/lib -DBOOST_VER:STRING=1.63.0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ ../../test
On CentOS, we can get away with:
mcd build
cmake ..
and:
mcd test
cmake ../../test