Fixed lots of CMake nastiness

This commit is contained in:
Thulinma 2017-01-10 10:12:07 +01:00
parent be6a689fb1
commit 9f3ee43e0f
2 changed files with 123 additions and 57 deletions

11
CMakeServHtml.txt Normal file
View file

@ -0,0 +1,11 @@
set(lspCode "")
string(REPLACE " " ";" lspLIST ${lspSOURCES})
foreach (f ${lspLIST} )
file (READ ${f} s)
set (lspCode "${lspCode}${s}")
endforeach()
file(READ ${SOURCE_DIR}/lsp/main.css lspCSS)
file(READ ${SOURCE_DIR}/lsp/header.html lspHeader)
file(READ ${SOURCE_DIR}/lsp/footer.html lspFooter)
file(WRITE generated/server.html "${lspHeader}<script>${lspCode}</script><style>${lspCSS}</style>${lspFooter}")