Updated README-cmake.md with build instructions for several platforms

This commit is contained in:
Sam Lantinga
2025-01-13 16:54:37 -08:00
parent 4294c06836
commit 8feb21a1d1
2 changed files with 37 additions and 22 deletions

View File

@@ -27,17 +27,19 @@ target_link_libraries(hello PRIVATE SDL3::SDL3)
Build:
```sh
cmake .
cmake --build .
cmake -S . -B build
cmake --build build
```
Run:
- On Windows the executable is in the Debug directory:
- On Windows the executable is in the build Debug directory:
```sh
./Debug/hello
cd build/Debug
./hello
```
- On other platforms the executable is in the current directory:
- On other platforms the executable is in the build directory:
```sh
cd build
./hello
```