meson setup builddir ninja -C builddir
The sim binary is in builddir/sim. Optionally install it with
sim
builddir/sim
ninja -C builddir install