cmake - Generate header file with biicode -
i'm trying prepare onion (https://github.com/davidmoreno/onion) biicode, need generate header file using program compile previously. have cmake doing it, not succeed packaging onion biicode.
the error right is:
...oterm/oterm.c:44:20: fatal error: assets.h: no such file or directory this header should compiled (edited brevity):
../tools/opack/opack ../../examples/oterm/static -o ../../build/examples/oterm/oterm_data.c and header generated byproduct.
the current cmake rule is:
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/* ) another option not compile examples @ all, prefer answer compiles properly.
the current code @ branch biicode @ https://github.com/davidmoreno/onion
thanks!
Comments
Post a Comment