a4e38ef957c0799fdf6b4cf5603c17abffea6e25
[flac.git] / doc / CMakeLists.txt
1 find_package(Doxygen)
2
3 if (NOT DOXYGEN_FOUND)
4     return()
5 endif()
6
7 option(BUILD_DOXYGEN "Enable API documentation building via Doxygen" ON)
8
9 if (NOT BUILD_DOXYGEN)
10     return()
11 endif()
12
13 set(DOXYGEN_HTML_FOOTER doxygen.footer.html)
14 set(DOXYGEN_GENERATE_TAGFILE FLAC.tag)
15
16 doxygen_add_docs(FLAC-doxygen
17     "${PROJECT_SOURCE_DIR}/include/FLAC"
18     "${PROJECT_SOURCE_DIR}/include/FLAC++")
19
20 add_subdirectory(html)
21
22 install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/"
23     DESTINATION "${CMAKE_INSTALL_DOCDIR}/html/api")