diff --git a/docs/cmake/Doxygen.cmake b/docs/cmake/Doxygen.cmake index c4e117e90..78cb3662c 100644 --- a/docs/cmake/Doxygen.cmake +++ b/docs/cmake/Doxygen.cmake @@ -1,3 +1,4 @@ +# WW3 doxygen support, M. Masarik 01-Jan-2024. function(Doxygen outDir) find_package(Doxygen) if (NOT DOXYGEN_FOUND) @@ -6,12 +7,16 @@ function(Doxygen outDir) COMMENT "Doxygen not found") return() endif() + set(SRC_BASEDIR "${CMAKE_SOURCE_DIR}") file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${outDir}) + CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/docs/Doxyfile.in + ${CMAKE_BINARY_DIR}/${outDir}/Doxyfile @ONLY) set(DOXYGEN_GENERATE_HTML YES) set(DOXYGEN_QUIET YES) set(DOXYGEN_HTML_OUTPUT ${CMAKE_BINARY_DIR}/${outDir}) doxygen_add_docs(doxygen - ${CMAKE_CURRENT_SOURCE_DIR} + ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/${outDir}/Doxyfile + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/${outDir} COMMENT "Generate Doxygen HTML documenation") message("-- Doxygen HTML index page: " ${CMAKE_BINARY_DIR}/${outDir}/index.html)