summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
blob: 66fa843e6885250d1807bc5ef2527867bf43000b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.1)
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")