Tweaked emscripten introduction

This commit is contained in:
Sam Lantinga 2025-01-22 13:05:44 -08:00
parent 74536243dd
commit c806c271c5
1 changed files with 2 additions and 1 deletions

View File

@ -34,13 +34,14 @@ add_executable(hello WIN32 hello.c)
target_link_libraries(hello PRIVATE SDL3::SDL3)
```
Build:
```sh
emcmake cmake -S . -B build
cd build
emmake make
```
You can now run your app by pointing a webserver at your build directory and connecting a web browser to it, opening hello.html.
You can now run your app by pointing a webserver at your build directory and connecting a web browser to it, opening hello.html
A more complete example is available at: