Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
endless90
on April 16, 2020
|
parent
|
context
|
favorite
| on:
Embedding Binary Objects in C
Is it possible to automate this with cmake?
tambre
on April 16, 2020
|
next
[–]
You may want to checkout the CMRC library (CMake Resource Compiler) [0].
[0]:
https://github.com/vector-of-bool/cmrc
MaxBarraclough
on April 16, 2020
|
parent
|
next
[–]
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.
lolaso
on April 16, 2020
|
parent
|
prev
|
next
[–]
perfect
je42
on April 16, 2020
|
parent
|
prev
|
next
[–]
nice!
idoby
on April 16, 2020
|
prev
|
next
[–]
I used to have this automated as part of a makefile, so I'd say yes.
kevin_thibedeau
on April 16, 2020
|
prev
[–]
You can use add_custom_command() to run a script that generates an assembly file using the incbin directive.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: