FindSphinx.cmake 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # - This module looks for Sphinx
  2. # Find the Sphinx documentation generator
  3. #
  4. # This modules defines
  5. # SPHINX_EXECUTABLE
  6. # SPHINX_FOUND
  7. #=============================================================================
  8. # Copyright 2002-2009 Kitware, Inc.
  9. # Copyright 2009-2011 Peter Colberg
  10. #
  11. # Distributed under the OSI-approved BSD License (the "License");
  12. # see accompanying file COPYING-CMAKE-SCRIPTS for details.
  13. #
  14. # This software is distributed WITHOUT ANY WARRANTY; without even the
  15. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. # See the License for more information.
  17. #=============================================================================
  18. # (To distribute this file outside of CMake, substitute the full
  19. # License text for the above reference.)
  20. find_program(SPHINX_EXECUTABLE NAMES sphinx-build
  21. HINTS
  22. $ENV{SPHINX_DIR}
  23. HINTS ${SPHINX_ROOT}/bin
  24. PATH_SUFFIXES bin
  25. DOC "Sphinx documentation generator"
  26. )
  27. include(FindPackageHandleStandardArgs)
  28. find_package_handle_standard_args(Sphinx DEFAULT_MSG
  29. SPHINX_EXECUTABLE
  30. )
  31. mark_as_advanced(
  32. SPHINX_EXECUTABLE
  33. )