Commit b4eef591 authored by Victor Zverovich's avatar Victor Zverovich

Only add the doc target if doxygen and sphinx-build are available

parent 90bc8dd3
foreach (program doxygen sphinx-build)
find_program(${program} ${program})
if (NOT ${program})
message(STATUS "Target 'doc' disabled (requires ${program})")
return ()
endif ()
endforeach ()
add_custom_target(doc
COMMAND doxygen
COMMAND rm -rf html
COMMAND sphinx-build -b html . html)
COMMAND ${doxygen}
COMMAND ${sphinx-build} -b html . html)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment