summaryrefslogtreecommitdiffstats
path: root/src/seastar/fmt/doc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/seastar/fmt/doc/CMakeLists.txt')
-rw-r--r--src/seastar/fmt/doc/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/seastar/fmt/doc/CMakeLists.txt b/src/seastar/fmt/doc/CMakeLists.txt
new file mode 100644
index 00000000..c16427a9
--- /dev/null
+++ b/src/seastar/fmt/doc/CMakeLists.txt
@@ -0,0 +1,12 @@
+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 build.py conf.py _templates/layout.html)
+
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
+ DESTINATION share/doc/fmt OPTIONAL)