- Install and activate emscripten using the instructions on emscripten's website
- On Windows also install a make tool. For example from mingw-w64
- Configure with the emscripten CMake toolchain file
$ cmake path/to/jsbind/repo -DCMAKE_TOOLCHAIN_FILE=path/to/emscripten/cmake/Modules/Platform/Emscripten.cmake -DJSBIND_EMSCRIPTEN=1 -DJSBIND_ENABLE_TESTING=1 -DJSBIND_BUILD_EXAMPLES=1 -DJSBIND_DEBUGGING=1 -G "Unix Makefiles"
- Build with
make
ormingw32-make
- Run tests with
ctest