doc: Build doc with cmake

Run `make doc` inside the cmake build folder.

The html output is installed to
${CMAKE_INSTALL_PREFIX}/share/doc/polybar
This commit is contained in:
patrick96 2018-12-01 14:10:03 +01:00 committed by Patrick Ziegler
parent 7809be8d58
commit c841bd512c

View File

@ -92,3 +92,15 @@ install(FILES config
COMPONENT config)
# }}}
# Documentation {{{
add_custom_target(doc ALL
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/doc
COMMAND make html)
install(DIRECTORY build/html/
DESTINATION share/doc/polybar
COMPONENT doc)
# }}}