mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-29 21:31:05 +00:00
17 lines
433 B
CMake
17 lines
433 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)
|