2015-03-02 00:35:29 +00:00
|
|
|
if (NOT EXISTS ${FORMAT_SOURCE_DIR}/breathe/breathe)
|
|
|
|
message(STATUS "Target 'doc' disabled (requires breathe module)")
|
|
|
|
return ()
|
|
|
|
endif ()
|
|
|
|
|
2015-01-30 20:53:52 +00:00
|
|
|
foreach (program doxygen sphinx-build)
|
|
|
|
find_program(${program} ${program})
|
|
|
|
if (NOT ${program})
|
|
|
|
message(STATUS "Target 'doc' disabled (requires ${program})")
|
|
|
|
return ()
|
|
|
|
endif ()
|
|
|
|
endforeach ()
|
|
|
|
|
2015-01-30 16:49:48 +00:00
|
|
|
add_custom_target(doc
|
2015-01-30 20:53:52 +00:00
|
|
|
COMMAND ${doxygen}
|
|
|
|
COMMAND ${sphinx-build} -b html . html)
|