Windows MacOS build
cmake -DBUILD_AS_LIBRARY=ON -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build --config Release
Look like non-unicode system locale cause build to fail. Adjusted to English for building.
Android build
In Application.mk add: APP_SHORT_COMMANDS := true
In Android.mk add
LOCAL_SHORT_COMMANDS := true
LOCAL_LDLIBS := -llog
Then run ndk-build
MacOS
Just use the xcode project file