Skip to content
Snippets Groups Projects
Commit c2d23107 authored by 数学の武士's avatar 数学の武士
Browse files

Merge branch 'doxygen' into 'main'

doxygen

See merge request ramil.rgk/ocean-vertical-mixing!18
parents 5d3b3c08 b6d035fc
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ include(FetchContent)
option(USE_NETCDF "NetCDF build in mode" OFF)
option(USE_SFX "Build with new sfx module" ON)
option(USE_CONFIG_PARSER "Build config parser" ON)
option(BUILD_DOC "Build documentation" OFF)
project(OceanVerticalMixing)
enable_language(Fortran)
......@@ -13,6 +14,20 @@ if(NOT USE_NETCDF)
add_definitions(-DOBL_EXCLUDE_NETCDF)
endif(NOT USE_NETCDF)
if(BUILD_DOC)
find_package(Doxygen)
if (DOXYGEN_FOUND)
set(DOXYGEN_IN ../doxygen/config) # doxygen config file
# option ALL allows to build the docs together with the code
add_custom_target( doc_doxygen ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_IN}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
else()
message("Doxygen need to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)
endif(BUILD_DOC)
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/modules/)
set(SOURCES
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment