#-----------------------------------------------------------------------------
生成文档(Doxygen + Breathe + Sphinx)
#-----------------------------------------------------------------------------
if(FASTCAE_DOXYGEN_DOC)
find_package(Doxygen REQUIRED)
if(DOXYGEN_FOUND)
message(STATUS “Found doc generate Tool: Doxygen”)
include(UseDoxygen)
# 文档生成依赖Python解释器、Sphinx
#[[find_package(PythonInterp)
find_package(Sphinx)
if(PYTHONINTERP_FOUND AND SPHINX_FOUND)
message(STATUS "Found doc generate Tool: Sphinx")
include(FindPythonModule)
# Python的breathe模块负责协调Doxygen和Sphinx
find_python_module(breathe REQUIRED)
if(breathe_FOUND)
message(STATUS "Python module(breathe) version: ${breathe_VERSION}")
include(UseSphinx)
else()
message(STATUS "Generate sphinx documentation need python module: breathe")
endif()
endif()]]
endif()
endif()
参考fastcae