FindSphinx.cmake 457 B

12345678910111213141516171819202122232425
  1. # - This module looks for Sphinx
  2. # Find the Sphinx documentation generator
  3. #
  4. # This modules defines
  5. # SPHINX_EXECUTABLE
  6. # SPHINX_FOUND
  7. find_program(SPHINX_EXECUTABLE NAMES sphinx-build
  8. HINTS
  9. $ENV{SPHINX_DIR}
  10. HINTS ${SPHINX_ROOT}/bin
  11. PATH_SUFFIXES bin
  12. DOC "Sphinx documentation generator"
  13. )
  14. include(FindPackageHandleStandardArgs)
  15. find_package_handle_standard_args(Sphinx DEFAULT_MSG
  16. SPHINX_EXECUTABLE
  17. )
  18. mark_as_advanced(
  19. SPHINX_EXECUTABLE
  20. )