Поиск Python

This commit is contained in:
Andrei Astafev 2019-04-15 03:55:20 +03:00
parent 2980180da0
commit f0d887e488

View File

@ -6,12 +6,14 @@ if(BUILD_BREATHE_DOC STREQUAL AUTO)
find_package(Perl) find_package(Perl)
set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4 3.3 3.2) set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4 3.3 3.2)
find_package(PythonInterp) find_package(PythonInterp)
find_package(Sphinx) if (PYTHONINTERP_FOUND)
include(FindPythonModule) find_package(Sphinx)
find_python_module(breathe) include(FindPythonModule)
find_python_module(recommonmark) find_python_module(breathe)
if(DOXYGEN_FOUND AND PERL_FOUND AND SPHINX_FOUND AND breathe AND recommonmark) find_python_module(recommonmark)
set(BUILD_BREATHE_DOC ON CACHE STRING "Enable documntation in Breathe format" FORCE) if(DOXYGEN_FOUND AND PERL_FOUND AND PYTHONINTERP_FOUND AND SPHINX_FOUND AND breathe AND recommonmark)
set(BUILD_BREATHE_DOC ON CACHE STRING "Enable documntation in Breathe format" FORCE)
endif()
endif() endif()
elseif(BUILD_BREATHE_DOC) elseif(BUILD_BREATHE_DOC)
find_package(Doxygen REQUIRED) find_package(Doxygen REQUIRED)