diff --git a/README.md b/README.md index b92e100024..a598af02fe 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,26 @@ make Note: by using the `-G` option of `cmake` you can specify a generator, e.g. `cmake -G Xcode -DCMAKE_BUILD_TYPE=Release ..` will generate an Xcode project. Please check `cmake --help` for more options. +### macOS + +```bash +brew install dylibbundler +git clone --recursive https://github.com/Return-To-The-Roots/s25client s25client +cd s25client +git submodule update --init --recursive +mkdir -p build && cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_PREFIX_PATH="/opt/homebrew" \ + -DCMAKE_CXX_FLAGS=" \ + -Wno-error=missing-noreturn \ + -Wno-error=deprecated-copy \ + -Wno-error=unused-parameter \ + -Wno-error=undef \ + -Wno-error=cast-qual" .. + make -j$(sysctl -n hw.ncpu) +``` + ### On Windows #### Prerequisites