Skip to content

Commit

Permalink
Doxygen.cmake: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMasarik-NOAA committed Jan 29, 2024
1 parent 6299b9b commit e459223
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/cmake/Doxygen.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# WW3 doxygen support, M. Masarik 01-Jan-2024.
function(Doxygen outDir)
find_package(Doxygen)
if (NOT DOXYGEN_FOUND)
Expand All @@ -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)
Expand Down

0 comments on commit e459223

Please sign in to comment.