blob: db554543d93b333ed2bab2cd6e2f1e4e358d9252 (
plain)
1
2
3
4
5
|
# https://stackoverflow.com/a/47801116
file(READ ${in} content)
string(REGEX REPLACE "(.[^\n]*\n)" "R\"w2c_template(\\1)w2c_template\"\n" content "${content}")
set(content "const char* ${symbol} = ${content};\n")
file(WRITE ${out} "${content}")
|