Skip to content

Commit

Permalink
Properly install extra files for both asm.js and wasm.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Dec 14, 2017
1 parent 459f6c8 commit cc7e4bf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/CMakeLists.txt
Expand Up @@ -9,6 +9,13 @@ target_link_libraries(MyApplication

if(CORRADE_TARGET_EMSCRIPTEN)
install(TARGETS MyApplication DESTINATION ${CMAKE_INSTALL_PREFIX})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/MyApplication.js.mem DESTINATION ${CMAKE_INSTALL_PREFIX} OPTIONAL)
install(FILES MyApplication.html EmscriptenApplication.js WebApplication.css DESTINATION ${CMAKE_INSTALL_PREFIX})
install(FILES
MyApplication.html
EmscriptenApplication.js
WebApplication.css
DESTINATION ${CMAKE_INSTALL_PREFIX})
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/MyApplication.js.mem
${CMAKE_CURRENT_BINARY_DIR}/MyApplication.wasm
DESTINATION ${CMAKE_INSTALL_PREFIX} OPTIONAL)
endif()

0 comments on commit cc7e4bf

Please sign in to comment.