1# SPDX-License-Identifier: BSD-3-Clause
2
3cmake_minimum_required(VERSION 3.10)
4
5project(SOF_DOC NONE)
6
7set(SOF_ROOT_SOURCE_DIRECTORY "${PROJECT_SOURCE_DIR}/..")
8
9set(top_srcdir "${SOF_ROOT_SOURCE_DIRECTORY}")
10
11configure_file(
12	"${PROJECT_SOURCE_DIR}/sof.doxygen.in"
13	"${PROJECT_BINARY_DIR}/sof.doxygen"
14)
15
16add_custom_target("doc"
17	COMMAND doxygen sof.doxygen
18	VERBATIM
19	USES_TERMINAL
20)
21
22add_custom_target("doc-clean"
23	COMMAND rm -rf ${PROJECT_BINARY_DIR}/doxygen
24	VERBATIM
25	USES_TERMINAL
26)
27