Files
MapLibreParticleLab/cmake/doxygen.cmake
Ander Conselvan de Oliveira 7bac0c7cba [build] Check documentation coverage on CI
Add a CI target that checks documentation coverage and reports back to
github. While at it, change the output of doxy-coverage to a json file
so it is easy to consume.
2019-03-13 15:06:56 +02:00

19 lines
666 B
CMake

find_package(Doxygen)
if(DOXYGEN_FOUND)
set(DOXYGEN_PROJECT_NAME "Mapbox GL Native")
set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/docs")
set(DOXYGEN_GENERATE_XML TRUE)
set(DOXYGEN_QUIET YES)
set(DOXYGEN_WARN_LOGFILE ${CMAKE_BINARY_DIR}/doxygen_warn.log)
doxygen_add_docs(generate_xml_doxygen
${CMAKE_SOURCE_DIR}/include
)
add_custom_target(doxygen_coverage
COMMAND ${CMAKE_SOURCE_DIR}/scripts/doxy-coverage.py --quiet --noerror --json="${CMAKE_BINARY_DIR}/doxygen-coverage.json" "${CMAKE_BINARY_DIR}/docs/xml"
COMMENT "Checking documentation coverage"
DEPENDS generate_xml_doxygen
)
endif()