1find_program(DOXYGEN doxygen) 2if (NOT DOXYGEN) 3 message(STATUS "Target 'doc' disabled (requires doxygen)") 4 return () 5endif () 6 7add_custom_target(doc 8 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py ${FMT_VERSION} 9 SOURCES build.py conf.py _templates/layout.html) 10 11install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ 12 DESTINATION share/doc/fmt OPTIONAL) 13