title: How to install both .js and .wasm files with the CMake target for emscripten?
body: <p>When building a C++/web-assembly project with CMake and emscripten, the <a href="https://cmake.org/cmake/help/v3.13/command/install.html" rel="noreferrer"><code>install</code></a> command for the target only install the <code>.js</code> file and not the <code>.wasm</code> file.</p>
  
  <pre><code>install(TARGETS MyTarget RUNTIME DESTINATION ${CMAKE_BINARY_DIR}/dist)
  </code></pre>
  
  <p>This will install the JS file only. I tried to add rules for <code>LIBRARY</code>, <code>RESOURCE</code>, <code>ARCHIVE</code>... but the Wasm is never copied. I could not find anything in the official doc.</p>
  
  <p>I know it's easy to workaround using the <code>install(FILES ...</code> command to force the copy of the wasm, but is there no way to make the standard install work for both files? They are both needed as a target...</p>