diff --git a/README.md b/README.md index b357850e..cd7a57cb 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,14 @@ On Linux using g++: add `-pthread` Note: added `-lboost_thread` to make the json-example thread safe. On some systems you might have to use `-lboost_thread-mt` instead. -#### HTTP +You can now also compile using CMake and make: + +``` +cmake . +make +``` -Use CMake and make, or: +#### HTTP `g++ -O3 -std=c++11 http_examples.cpp -lboost_system -lboost_thread -o http_examples` @@ -47,8 +52,6 @@ Also, direct your favorite browser to for instance http://localhost:8080/ #### HTTPS -Use CMake and make, or: - `g++ -O3 -std=c++11 https_examples.cpp -lboost_system -lboost_thread -lssl -lcrypto -o https_examples` Before running the server, an RSA private key (server.key) and an SSL certificate (server.crt) must be created. Follow, for instance, the instructions given here (for a self-signed certificate): http://www.akadia.com/services/ssh_test_certificate.html