An open API service indexing awesome lists of open source software.

https://github.com/henryquan/wasm-cmake

Compile C++ to WASM using CMake and Emscripten
https://github.com/henryquan/wasm-cmake

Last synced: 3 months ago
JSON representation

Compile C++ to WASM using CMake and Emscripten

Awesome Lists containing this project

README

        

# WASM CMake
Compile C++ to WASM using CMake. Follow this [guide](https://emscripten.org/docs/getting_started/downloads.html) to setup emscripten. Read more about [WASM](https://developer.mozilla.org/en-US/docs/WebAssembly).

## CMake
Use the following command to generate the build files. `emcmake` will setup environment variables for emscripten.
```terminal
cd build
emcmake cmake ..
```