blob: 254d8569d657a55db1f745ea8ce8df5fd8775290 [file] [log] [blame]
#
# Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Minimal cmake script for running sphinx. Use as:
# cmake -P SphinxBuild.cmake
# Inputs:
# SPHINXOPTS : extra options for sphinx
set(SPHINXBUILD "sphinx-build" CACHE PATH "Location of sphinx-build executable.")
set(SPHNIX_BUILDDIR "_build" CACHE PATH "Directory to place sphinx outpot to.")
exec_program(${SPHINXBUILD} ./
ARGS -M html ${CMAKE_CURRENT_LIST_DIR} ${SPHNIX_BUILDDIR} ${SPHINXOPTS}
)