2019-06-02 03:33:40 +08:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2021-09-09 05:54:20 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2019-01-16 03:28:07 +08:00
|
|
|
|
2019-01-25 02:09:04 +08:00
|
|
|
project(SOF_DOC NONE)
|
2019-01-16 03:28:07 +08:00
|
|
|
|
|
|
|
set(SOF_ROOT_SOURCE_DIRECTORY "${PROJECT_SOURCE_DIR}/..")
|
|
|
|
|
|
|
|
set(top_srcdir "${SOF_ROOT_SOURCE_DIRECTORY}")
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
"${PROJECT_SOURCE_DIR}/sof.doxygen.in"
|
|
|
|
"${PROJECT_BINARY_DIR}/sof.doxygen"
|
|
|
|
)
|
|
|
|
|
2022-07-19 06:58:14 +08:00
|
|
|
add_custom_target("doc" ALL
|
2019-01-16 03:28:07 +08:00
|
|
|
COMMAND doxygen sof.doxygen
|
|
|
|
VERBATIM
|
|
|
|
USES_TERMINAL
|
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target("doc-clean"
|
|
|
|
COMMAND rm -rf ${PROJECT_BINARY_DIR}/doxygen
|
|
|
|
VERBATIM
|
|
|
|
USES_TERMINAL
|
|
|
|
)
|