From e094807b466ff6058b13b42231066573c112937b Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 22 Aug 2025 12:33:01 +1000 Subject: [PATCH] Update readme for tests. --- tests/_build/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/_build/README.md b/tests/_build/README.md index d0e3876d..e44cd53b 100644 --- a/tests/_build/README.md +++ b/tests/_build/README.md @@ -22,4 +22,16 @@ like this: emrun ./bin/emscripten.html -If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command. \ No newline at end of file +If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command. + +To use with CMake, you can do something like this: + + emcmake cmake -S ../../ -B cmake-emcc -DCMAKE_BUILD_TYPE=Debug -DMINIAUDIO_NO_LIBVORBIS=Yes -DMINIAUDIO_NO_LIBOPUS=Yes -DMINIAUDIO_BUILD_TESTS=Yes -DMINIAUDIO_BUILD_EXAMPLES=No + +Then to compile with CMake: + + cmake --build cmake-emcc -j + +To do a clean rebuild: + + cmake --build cmake-emcc -j --clean-first \ No newline at end of file