aboutsummaryrefslogtreecommitdiff
path: root/quote-file.cmake
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-06-02 23:50:33 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-06-08 21:03:58 +0200
commitc05d522a1d840b801c6bdaf635b61a9cd6a991b3 (patch)
tree312c94d8b9d941fe47b878596a444d70d97d3405 /quote-file.cmake
parent2c250916392c36ec107d6b5d19d9485bf115bd9d (diff)
downloadsensei-raw-ctl-c05d522a1d840b801c6bdaf635b61a9cd6a991b3.tar.gz
sensei-raw-ctl-c05d522a1d840b801c6bdaf635b61a9cd6a991b3.tar.xz
sensei-raw-ctl-c05d522a1d840b801c6bdaf635b61a9cd6a991b3.zip
Add a GTK+ GUI
Diffstat (limited to 'quote-file.cmake')
-rw-r--r--quote-file.cmake4
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")