From 928c5af316e407695ebc694c71607fe184738708 Mon Sep 17 00:00:00 2001 From: Henry Le Berre Date: Fri, 1 Mar 2024 08:27:46 -0500 Subject: [PATCH] Fypp Doxygen fix #342 (#360) --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21d7b9d68..91f974299 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -470,8 +470,12 @@ if (MFC_DOCUMENTATION) macro(GEN_DOCS target name) set(DOXYGEN_PROJECT_NAME "\"${name}\"") - set(DOXYGEN_INPUT "\"${CMAKE_CURRENT_SOURCE_DIR}/src/${target}\"\ - \"${CMAKE_CURRENT_SOURCE_DIR}/docs/${target}\"") + set(DOXYGEN_INPUT "\"${CMAKE_CURRENT_SOURCE_DIR}/docs/${target}\"") + + foreach (f90 ${${target}_SRCs}) + set(DOXYGEN_INPUT "${DOXYGEN_INPUT} \"${f90}\"") + endforeach() + set(DOXYGEN_HTML_HEADER "\"${CMAKE_CURRENT_SOURCE_DIR}/docs/header.html\"") set(DOXYGEN_HTML_FOOTER "\"${CMAKE_CURRENT_SOURCE_DIR}/docs/footer.html\"") set(DOXYGEN_HTML_OUTPUT "\"${CMAKE_CURRENT_BINARY_DIR}/${target}\"")