~linuxjedi/libdrizzle/5.1-fix-mingw

« back to all changes in this revision

Viewing changes to cmake/modules/FindSphinx.cmake

  • Committer: Andrew Hutchings
  • Date: 2012-11-11 18:39:59 UTC
  • Revision ID: andrew@linuxjedi.co.uk-20121111183959-t02qsm3ijn0p5k49
Add documentation build system

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#=============================================================================
 
9
# Copyright 2002-2009 Kitware, Inc.
 
10
# Copyright 2009-2011 Peter Colberg
 
11
#
 
12
# Distributed under the OSI-approved BSD License (the "License");
 
13
# see accompanying file COPYING-CMAKE-SCRIPTS for details.
 
14
#
 
15
# This software is distributed WITHOUT ANY WARRANTY; without even the
 
16
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
17
# See the License for more information.
 
18
#=============================================================================
 
19
# (To distribute this file outside of CMake, substitute the full
 
20
#  License text for the above reference.)
 
21
 
 
22
find_program(SPHINX_EXECUTABLE NAMES sphinx-build
 
23
  HINTS
 
24
  $ENV{SPHINX_DIR}
 
25
  PATH_SUFFIXES bin
 
26
  DOC "Sphinx documentation generator"
 
27
)
 
28
 
 
29
include(FindPackageHandleStandardArgs)
 
30
 
 
31
find_package_handle_standard_args(Sphinx DEFAULT_MSG
 
32
  SPHINX_EXECUTABLE
 
33
)
 
34
 
 
35
mark_as_advanced(
 
36
  SPHINX_EXECUTABLE
 
37
)