dynarmic/externals/fmt/doc/CMakeLists.txt
MerryMage 591e7667f2 externals: Update fmt to 6.2.0
Merge commit 'c9dec5da8cb2893219c069f92728fb3997c7d81e'
2020-04-23 21:03:34 +01:00

12 lines
391 B
CMake

find_program(DOXYGEN doxygen)
if (NOT DOXYGEN)
message(STATUS "Target 'doc' disabled (requires doxygen)")
return ()
endif ()
add_custom_target(doc
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py ${FMT_VERSION}
SOURCES api.rst syntax.rst usage.rst build.py conf.py _templates/layout.html)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
DESTINATION share/doc/fmt OPTIONAL)