cmake: add doc CMakeLists

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
Janusz Jankowski 2019-01-15 20:28:07 +01:00 committed by Liam Girdwood
parent a59e428b61
commit 07bd1b20cb
1 changed files with 24 additions and 0 deletions

24
doc/CMakeLists.txt Normal file
View File

@ -0,0 +1,24 @@
cmake_minimum_required(VERSION 3.10)
project(SOF_DOC)
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"
)
add_custom_target("doc"
COMMAND doxygen sof.doxygen
VERBATIM
USES_TERMINAL
)
add_custom_target("doc-clean"
COMMAND rm -rf ${PROJECT_BINARY_DIR}/doxygen
VERBATIM
USES_TERMINAL
)