diff --git a/CMakeLists.txt b/CMakeLists.txt index 470c3d7..c6604e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,5 +55,9 @@ if (UNIX) # Only include in bash environments. ) endif (UNIX) +if (${CMAKE_SYSTEM_NAME} STREQUAL Emscripten) + file(COPY template/wasm_example.html DESTINATION ${PROJECT_BINARY_DIR}) +endif () + install(TARGETS ${CMAKE_PROJECT_NAME} RUNTIME DESTINATION ${INSTALL_BIN_DIR}) install(FILES README.md LICENSE LICENSE.bitcoin DESTINATION ${INSTALL_SHARE_DIR}) diff --git a/template/wasm_example.html b/template/wasm_example.html new file mode 100644 index 0000000..cfb7bb4 --- /dev/null +++ b/template/wasm_example.html @@ -0,0 +1,10 @@ + + +
+ +