title: How do I pass 'emcc' options through 'emcmake cmake/emmake make'?
body: <p>I have a CMake project (C++) that I want to make available in JavaScript through WebAssembly. To configure it, I use <code>emcmake cmake</code> and to build it <code>emmake make</code>. I can compile parts successfully, when I do it manually:</p>
  <pre class="lang-sh prettyprint-override"><code>emcc --bind test.cpp
  </code></pre>
  <p>But  I want to profit from the advantages of <code>emmake</code>. I need the parameter <code>--bind</code> for <code>emcc</code>. <code>emmake</code> does not add it by default, which results in an error:</p>
  <pre class="lang-none prettyprint-override"><code>error: undefined symbol: _embind_register_function (referenced by top-level compiled C/C++ code)
  </code></pre>
  <p>So, how do I add it, when building with <code>emmake make</code>? Can I pass it to <code>emmake</code>? Or can I add something to my <code>CMakeLists.txt</code>?</p>
  <hr />
  <p>MCRE:</p>
  <p><code>CMakeLists.txt</code>:</p>
  <pre><code>cmake_minimum_required(VERSION 2.8)
  project(MyTest)
  add_executable(mytest test.cpp)
  </code></pre>
  <p><code>test.cpp</code>:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &quot;emscripten/bind.h&quot;
  
  using namespace emscripten;
  
  std::string getText()
  {
      return &quot;Hello there from C++!&quot;;
  }
  
  EMSCRIPTEN_BINDINGS(my_module) {
      function(&quot;getText&quot;, &amp;getText);
  }
  </code></pre>