sensei-raw-ctl/quote-file.cmake
2013-06-08 21:03:58 +02:00

5 lines
161 B
CMake

file (READ ${input} contents)
string (REPLACE "\n" "\\n\"\n\"" contents "${contents}")
file (WRITE ${output}
"const char ${var_name}[] = \n\"${contents}\";\n")