diff options
author | saurabhb17 | 2020-02-26 16:04:40 +0530 |
---|---|---|
committer | saurabhb17 | 2020-02-26 16:04:40 +0530 |
commit | 039ac92480a09266146fc5b0c9ec67a32a2565ad (patch) | |
tree | 7b6cef031a580680690a0f32410db940f7e7d7d5 /CMakeModules/Html2C.cmake | |
parent | aa35045840b78d3f48212db45da59a2e5c69b223 (diff) | |
download | KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.tar.gz KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.tar.bz2 KiCad-eSim-039ac92480a09266146fc5b0c9ec67a32a2565ad.zip |
Added secondary files
Diffstat (limited to 'CMakeModules/Html2C.cmake')
-rw-r--r-- | CMakeModules/Html2C.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeModules/Html2C.cmake b/CMakeModules/Html2C.cmake new file mode 100644 index 0000000..99919b3 --- /dev/null +++ b/CMakeModules/Html2C.cmake @@ -0,0 +1,13 @@ + +# CMake script file to process a text file by wrapping every line in double quotes. +# Input file must not abuse quotes, staying with single quotes is probably best. + +set( lines "" ) +file( STRINGS ${inputFile} lines ) + +file( WRITE ${outputFile} "// Do not edit this file, it is autogenerated by CMake from an HTML file\n" ) + +foreach( line ${lines} ) + STRING(REGEX REPLACE "\"" "\\\\\"" linem ${line}) + file( APPEND ${outputFile} "\"" ${linem} "\\n\"\n" ) +endforeach( line ${lines} ) |