more
This commit is contained in:
parent
6568f7ba78
commit
da3598f783
|
@ -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(
|
||||||
option(
|
option(
|
||||||
BUILD_DOCS
|
BUILD_DOCS
|
||||||
"If use doxygen build documents"
|
"If use doxygen build documents"
|
||||||
OFF
|
ON
|
||||||
)
|
)
|
Loading…
Reference in New Issue