diff options
Diffstat (limited to 'quote-file.cmake')
-rw-r--r-- | quote-file.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quote-file.cmake b/quote-file.cmake new file mode 100644 index 0000000..6f9159e --- /dev/null +++ b/quote-file.cmake @@ -0,0 +1,4 @@ +file (READ ${input} contents) +string (REPLACE "\n" "\\n\"\n\"" contents "${contents}") +file (WRITE ${output} + "const char ${var_name}[] = \n\"${contents}\";\n") |