From d55c6c87ec594d12c4174c03d8a5c4bd4c223a38 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 11 Apr 2020 01:09:22 -0400 Subject: [PATCH] cmake: Add top level html index file to build system and put it, and the css and images needed into the correct output directories. Signed-off-by: Robin Getz --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53658d95f..413177b49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -396,7 +396,10 @@ if(WITH_DOC) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/CI/travis/generateDocumentationAndDeploy.sh.in ${CMAKE_CURRENT_BINARY_DIR}/generateDocumentationAndDeploy.sh @ONLY) - file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/doc DESTINATION ${CMAKE_HTML_DEST_DIR}/${CMAKE_API_DEST_DIR}) + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/doc + DESTINATION ${CMAKE_HTML_DEST_DIR}/${CMAKE_API_DEST_DIR} + FILES_MATCHING PATTERN "*.svg") + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/doc/html/ DESTINATION ${CMAKE_HTML_DEST_DIR}) add_custom_command(TARGET iio POST_BUILD COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile