提交 da3598f7 编写于 作者: H Hongze Cheng

more

上级 6568f7ba
...@@ -76,8 +76,15 @@ add_subdirectory(source) ...@@ -76,8 +76,15 @@ add_subdirectory(source)
# docs # docs
if(${BUILD_DOCS}) if(${BUILD_DOCS})
execute_process(COMMAND doxygen ${PROJECT_SOURCE_DIR}/docs/Doxyfile) find_program(DOC_GENERATOR doxygen)
if(NOT DOC_GENERATOR)
message("doxygen is not found, skip doc build")
else()
execute_process(
COMMAND doxygen ${CMAKE_SOURCE_DIR}/docs/Doxyfile
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
endif(NOT DOC_GENERATOR)
endif(${BUILD_DOCS}) endif(${BUILD_DOCS})
# tests (TODO) # tests (TODO)
...@@ -40,5 +40,5 @@ option( ...@@ -40,5 +40,5 @@ option(
option( option(
BUILD_DOCS BUILD_DOCS
"If use doxygen build documents" "If use doxygen build documents"
OFF ON
) )
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册