CMake/Utilities/Sphinx/apply_qthelp_css_workaround...

16 lines
437 B
CMake

file(READ "${CSS_DIR}/basic.css" BasicCssContent)
file(READ "${CSS_DIR}/default.css" DefaultCssContent)
string(REPLACE
"@import url(\"basic.css\")" "${BasicCssContent}"
DefaultCssContent "${DefaultCssContent}"
)
file(READ "${CSS_DIR}/cmake.css" CMakeCssContent)
string(REPLACE
"@import url(\"default.css\")" "${DefaultCssContent}"
CMakeCssContent "${CMakeCssContent}"
)
file(WRITE "${CSS_DIR}/cmake.css" "${CMakeCssContent}")