From 6c75bde57aff82894c44c7fa2587a0220e181cc0 Mon Sep 17 00:00:00 2001 From: DataTriny Date: Fri, 23 Jun 2023 21:08:09 +0200 Subject: [PATCH] Improve README --- bindings/c/examples/sdl/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bindings/c/examples/sdl/README.md b/bindings/c/examples/sdl/README.md index c32993cd5..126d8d4e1 100644 --- a/bindings/c/examples/sdl/README.md +++ b/bindings/c/examples/sdl/README.md @@ -8,10 +8,10 @@ The process will vary based on your operating system. ### On Windows: -First download a copy of SDL2 and extract it. +First download an SDL2 development package from the project's [GitHub release page](https://github.com/libsdl-org/SDL/releases) (SDL2-devel-2.x.y-VC.zip for MSVC) and extract it. ```bash -cmake -S . -B build -DACCESSKIT_DIR="../.." -DSDL2_ROOT="/cmake" +cmake -S . -B build -DACCESSKIT_DIR="../.." -DSDL2_DIR="/cmake" cmake --build build --config Release ``` @@ -25,3 +25,12 @@ Make sure to install SDL2 and its development package. cmake -S . -B build -DACCESSKIT_DIR="../.." -DCMAKE_BUILD_TYPE=Release cmake --build build ``` + +### On Mac OS X + +First download an SDL2 package from the project's [GitHub release page](https://github.com/libsdl-org/SDL/releases) (SDL2-2.x.y.dmg) and copy `SDL2.framework` to `/Library/Frameworks`. + +```bash +cmake -S . -B build -DACCESSKIT_DIR="../.." -DCMAKE_BUILD_TYPE=Release +cmake --build build +```