fmt/doc/CMakeLists.txt
2015-04-09 07:21:42 -07:00

19 lines
491 B
CMake

if (NOT EXISTS ${FORMAT_SOURCE_DIR}/breathe/breathe)
message(STATUS "Target 'doc' disabled (requires breathe module)")
return ()
endif ()
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 ${sphinx-build} -b html . html)
install(DIRECTORY html/ DESTINATION share/doc/cppformat)