FindSphinx
This commit is contained in:
parent
8cdb005db6
commit
a0a786f590
38
FindSphinx.cmake
Normal file
38
FindSphinx.cmake
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# - This module looks for Sphinx
|
||||||
|
# Find the Sphinx documentation generator
|
||||||
|
#
|
||||||
|
# This modules defines
|
||||||
|
# SPHINX_EXECUTABLE
|
||||||
|
# SPHINX_FOUND
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Copyright 2002-2009 Kitware, Inc.
|
||||||
|
# Copyright 2009-2011 Peter Colberg
|
||||||
|
#
|
||||||
|
# Distributed under the OSI-approved BSD License (the "License");
|
||||||
|
# see accompanying file COPYING-CMAKE-SCRIPTS for details.
|
||||||
|
#
|
||||||
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||||
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
# See the License for more information.
|
||||||
|
#=============================================================================
|
||||||
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
|
# License text for the above reference.)
|
||||||
|
|
||||||
|
find_program(SPHINX_EXECUTABLE NAMES sphinx-build
|
||||||
|
HINTS
|
||||||
|
$ENV{SPHINX_DIR}
|
||||||
|
HINTS ${SPHINX_ROOT}/bin
|
||||||
|
PATH_SUFFIXES bin
|
||||||
|
DOC "Sphinx documentation generator"
|
||||||
|
)
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
|
||||||
|
find_package_handle_standard_args(Sphinx DEFAULT_MSG
|
||||||
|
SPHINX_EXECUTABLE
|
||||||
|
)
|
||||||
|
|
||||||
|
mark_as_advanced(
|
||||||
|
SPHINX_EXECUTABLE
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user