source emcc.sh

mkdir -p build >/dev/null 2>&1
cd build
emcmake cmake ..
emmake make

cp ~/Desktop/MODEL_SCGMS/Wasm_emcc/build/scgms.wasm ~/Desktop/smartcgms-demo-projects/SCMGS-Web-Demo
#cp ~/Desktop/MODEL_SCGMS/Wasm_emcc/build/scgms.js ~/Desktop/smartcgms-demo-projects/SCMGS-Web-Demo
cp ~/Desktop/MODEL_SCGMS/Wasm_emcc/build/scgms.worker.js ~/Desktop/smartcgms-demo-projects/SCMGS-Web-Demo