]> git.saurik.com Git - apt.git/blobdiff - doc/CMakeLists.txt
Tags should use StoreString, not WriteStringInMap.
[apt.git] / doc / CMakeLists.txt
index d54303debda9bdacfc269ce5d8ecb7612d0ae4f3..a1491428f0cd57654b4c1a7df73135157c83c41c 100644 (file)
@@ -39,14 +39,14 @@ add_docbook(libapt-pkg-doc HTML TEXT ALL
     DEPENDS ${ENTITIES}
 )
 
     DEPENDS ${ENTITIES}
 )
 
-find_package(Doxygen)
+find_package(Doxygen REQUIRED)
 
 file(GLOB_RECURSE apt_pkg "../apt-pkg/*.h" "../apt-pkg/*.cc")
 configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
 
 add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
 
 file(GLOB_RECURSE apt_pkg "../apt-pkg/*.h" "../apt-pkg/*.cc")
 configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
 
 add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
-    COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+    COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
     COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
     DEPENDS ${apt_pkg} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
 )
     COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
     DEPENDS ${apt_pkg} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
 )
@@ -56,7 +56,10 @@ add_custom_target(apt-doxygen ALL
 )
 
 install(DIRECTORY  ${PROJECT_BINARY_DIR}/doc/doxygen/html
 )
 
 install(DIRECTORY  ${PROJECT_BINARY_DIR}/doc/doxygen/html
-        DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc)
+        DESTINATION ${CMAKE_INSTALL_DOCDIR}/../libapt-pkg-doc
+        PATTERN "*.map" EXCLUDE
+        PATTERN "*.md5" EXCLUDE
+)
 
 endif()
 
 
 endif()