News for hackers. Stuff that matters.
Re:Embedding Binary Objects in C by endless90 on Thursday April 16, 2020 @07:48AM (#22888425)
Is it possible to automate this with cmake?
Re:Embedding Binary Objects in C by tambre on Thursday April 16, 2020 @08:58AM (#22888879)
You may want to checkout the CMRC library (CMake Resource Compiler) [0].

[0]: https://github.com/vector-of-bool/cmrc

Re:Embedding Binary Objects in C by MaxBarraclough on Thursday April 16, 2020 @11:39AM (#22890497)
Neat. Looks a little more complex than it needs to be though, and I'm surprised it targets C++ (and even relies on exceptions) with no support for C.
Re:Embedding Binary Objects in C by lolaso on Thursday April 16, 2020 @10:54AM (#22889971)
perfect
Re:Embedding Binary Objects in C by je42 on Thursday April 16, 2020 @09:38AM (#22889210)
nice!
Re:Embedding Binary Objects in C by idoby on Thursday April 16, 2020 @08:19AM (#22888606)
I used to have this automated as part of a makefile, so I'd say yes.
Re:Embedding Binary Objects in C by kevin_thibedeau on Thursday April 16, 2020 @01:16PM (#22891476)
You can use add_custom_command() to run a script that generates an assembly file using the incbin directive.