18 ../vendor/${CURRENT_VENDOR}/apt-vendor.ent
22 add_docbook(apt-doc HTML TEXT ALL
26 INSTALL ${CMAKE_INSTALL_DOCDIR}/../apt-doc
31 add_docbook(libapt-pkg-doc HTML TEXT ALL
37 INSTALL ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc
42 find_package(Doxygen REQUIRED)
44 file(GLOB_RECURSE apt_pkg "../apt-pkg/*.h" "../apt-pkg/*.cc")
45 configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
48 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
49 COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
50 COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
51 DEPENDS ${apt_pkg} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
54 add_custom_target(apt-doxygen ALL
55 DEPENDS ${PROJECT_BINARY_DIR}/doc/doxygen.stamp
58 install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/doxygen/html
59 DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc
60 PATTERN "*.map" EXCLUDE
61 PATTERN "*.md5" EXCLUDE
66 add_docbook(apt-man MANPAGE ALL
73 apt-extracttemplates.1.xml
86 add_update_po4a(update-po4a po/${PROJECT_NAME}-doc.pot "po/header.pot.txt")
88 add_subdirectory(examples)