diff options
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 00000000..a4e38ef9 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,23 @@ +find_package(Doxygen) + +if (NOT DOXYGEN_FOUND) + return() +endif() + +option(BUILD_DOXYGEN "Enable API documentation building via Doxygen" ON) + +if (NOT BUILD_DOXYGEN) + return() +endif() + +set(DOXYGEN_HTML_FOOTER doxygen.footer.html) +set(DOXYGEN_GENERATE_TAGFILE FLAC.tag) + +doxygen_add_docs(FLAC-doxygen + "${PROJECT_SOURCE_DIR}/include/FLAC" + "${PROJECT_SOURCE_DIR}/include/FLAC++") + +add_subdirectory(html) + +install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/" + DESTINATION "${CMAKE_INSTALL_DOCDIR}/html/api") |