blob: b364813e0b1375667335ec5c74397e117057383a [file] [log] [blame]
Imre Kis124f0e32021-02-12 18:03:24 +01001#
2# Copyright (c) 2019-2021, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Minimal cmake script for running sphinx. Use as:
8# cmake -P SphinxBuild.cmake
9
10# Inputs:
11# SPHINXOPTS : extra options for sphinx
12
13set(SPHINXBUILD "sphinx-build" CACHE PATH "Location of sphinx-build executable.")
14set(SPHNIX_BUILDDIR "_build" CACHE PATH "Directory to place sphinx outpot to.")
15
16exec_program(${SPHINXBUILD} ./
17 ARGS -M html ${CMAKE_CURRENT_LIST_DIR} ${SPHNIX_BUILDDIR} ${SPHINXOPTS}
18 )