diff --git a/README.md b/README.md index 15cf3dc..15d874f 100644 --- a/README.md +++ b/README.md @@ -24,25 +24,31 @@ Dependencies Building -------- -On Linux: - -**TODO**: deb and rpm packages - - ./configure +### Linux: +``` + mkdir ./build && cd build + cmake .. make - sudo make install +``` +You may need to pass some variables to cmake that tells it about the dependencies etc. This may not be necessary if you install the dependencies system wide. Here's an example: +``` +cmake -DLIBNICE_LIBRARY=./libnice.so -DUSRSCTP_LIBRARY=./libusrsctp.so -DLIBNICE_INCLUDE_DIR="./libnice/nice/;./libnice/agent/;./libnice/;" -DUSRSCTP_INCLUDE_DIR=./usrsctp/usrsctplib -DSPDLOG_INCLUDE_DIR="./spdlog/include/" -DDISABLE_SPDLOG=off -DCMAKE_BUILD_TYPE=Debug + ``` + Disable spdlog by passing `-DDISABLE_SPDLOG=on` + +**TODO**: deb and rpm packages -On Mac: +### Mac: **TODO**: homebrew integration - +``` brew install ... ./configure make sudo make install +``` - -On Windows: +### Windows: **TODO**: Visual studio integration, or a script like that jsoncpp library does