Enable doxygen in cmake build#1281
Conversation
|
Thanks for your review @edwardhartnett |
|
You could consider using the 'required' keyword for |
Thanks @AlexanderRichert-NOAA, that's a great suggestion. I'll update 'find_package' to use the 'required' keyword. |
JessicaMeixner-NOAA
left a comment
There was a problem hiding this comment.
Approving based on @edwardhartnett and @AlexanderRichert-NOAA review
Thank you for reviewing @JessicaMeixner-NOAA |
* origin/develop: Enable doxygen documentation in the cmake build system (NOAA-EMC#1281) Simplify MPI ifdefs in subroutine W3MPIO (NOAA-EMC#1266) Add depth scaling value to SMC regression tests. (NOAA-EMC#1264) Updates to NCEP regtests for Orion Rocky9 OS(NOAA-EMC#1263) Fix code stability issue in ww3_outp (NOAA-EMC#1258) Fix GNU regtest CI failure (NOAA-EMC#1253)
* origin/develop: Enable doxygen documentation in the cmake build system (NOAA-EMC#1281) Simplify MPI ifdefs in subroutine W3MPIO (NOAA-EMC#1266) Add depth scaling value to SMC regression tests. (NOAA-EMC#1264) Updates to NCEP regtests for Orion Rocky9 OS(NOAA-EMC#1263) Fix code stability issue in ww3_outp (NOAA-EMC#1258) Fix GNU regtest CI failure (NOAA-EMC#1253)
* feature/gpu/w3srce_refactor: Enable doxygen documentation in the cmake build system (NOAA-EMC#1281) Simplify MPI ifdefs in subroutine W3MPIO (NOAA-EMC#1266) Add depth scaling value to SMC regression tests. (NOAA-EMC#1264) Updates to NCEP regtests for Orion Rocky9 OS(NOAA-EMC#1263) Fix code stability issue in ww3_outp (NOAA-EMC#1258) Fix GNU regtest CI failure (NOAA-EMC#1253) Add option to use NetCDF output instead of binary for point output (NOAA-EMC#1230)
Pull Request Summary
Enables doxygen documention within the cmake build system.
Description
Doxygen support is added to the build system via:
ENABLE_DOCS) is added to the mainCMakeLists.txtfile, which is currently set toOFFby default.cmakemodule is added (EnableDoxygen) which takes an output directory as an argument. Default is set asdocs.EnableDoxygenadds a target (enable_docs) to the build system. Ifdoxygenis not found on the system, the target will fail, otherwisedoxygenwill be run and the output location ofindex.htmlis displayed duringcmakeconfig.cmakebuild files to handledoxygendocumentation, so there are no answer changes expected.Usage
Steps to generate
doxygendocumentation from the WW3 root directory:View html docs in browser (ex, firefox) for default output location
enable_docswill just rundoxygenon the source files. However, the dependencies (i.e, Fortran compiler, NetCDF, etc) still need to be available due to checks within the build system.Please also include the following information:
Issue(s) addressed
Commit Message
Enable doxygen documentation in the cmake build system
Check list
Testing