C++ Doxygen + Breathe + Sphinx 生成接口文档

#-----------------------------------------------------------------------------

生成文档(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

你可能感兴趣的:(c++,sphinx,java)