title: Generate header file with biicode
body: <p>I'm trying to prepare onion (<a href="https://github.com/davidmoreno/onion" rel="nofollow">https://github.com/davidmoreno/onion</a>) for biicode, but I need to generate a header file using some program I compile previously. I already have cmake doing it, but I do not succeed properly packaging onion for biicode.</p>
  
  <p>The error right now is:</p>
  
  <pre><code>...oterm/oterm.c:44:20: fatal error: assets.h: No such file or directory
  </code></pre>
  
  <p>this header should be compiled with (edited for brevity):</p>
  
  <pre><code>../tools/opack/opack ../../examples/oterm/static -o ../../build/examples/oterm/oterm_data.c 
  </code></pre>
  
  <p>and the header is generated as a byproduct.</p>
  
  <p>The current cmake rule is:</p>
  
  <pre><code>add_custom_command(
     OUTPUT oterm_data.c
     COMMAND ${OPACK} ${CMAKE_CURRENT_SOURCE_DIR}/static
                -o ${CMAKE_CURRENT_BINARY_DIR}/oterm_data.c
     DEPENDS ${OPACK} ${CMAKE_CURRENT_SOURCE_DIR}/static/*
     )
  </code></pre>
  
  <p>Another option would be to do not compile examples at all, but I prefer an answer that compiles everything properly.</p>
  
  <p>The current code is at branch biicode at <a href="https://github.com/davidmoreno/onion" rel="nofollow">https://github.com/davidmoreno/onion</a></p>
  
  <p>Thanks!</p>