Fixed lots of CMake nastiness
This commit is contained in:
parent
be6a689fb1
commit
9f3ee43e0f
2 changed files with 123 additions and 57 deletions
11
CMakeServHtml.txt
Normal file
11
CMakeServHtml.txt
Normal 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}")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue