Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 850 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 850 Bytes

cmake-vcpkg-imgui-emscripten

IF ANYONE FOUND THIS HERE, I HAVE A QUESTION:

Normal Build

git clone https://github.com/aarlt/cmake-vcpkg-imgui-emscripten
cd cmake-vcpkg-imgui-emscripten
mkdir build
cd build
cmake ..
make

Emscripten Build

  • install emsdk
git clone https://github.com/aarlt/cmake-vcpkg-imgui-emscripten
cd cmake-vcpkg-imgui-emscripten
mkdir build
cd build
emcmake cmake .. "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" "-DVCPKG_TARGET_TRIPLET=wasm32-emscripten" "-DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
make

Start http-server

npx http-server