X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/6a3e79b792a45688e555394337273061502752c4..c29b6eadb255f5f5f732d0391812d97fe015395f:/doc/CMakeLists.txt?ds=inline diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 5a7d9cb..6ccf100 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -10,13 +10,15 @@ if(DOXYGEN_FOUND) ) add_custom_target(install-doc - ${CMAKE_COMMAND} -E copy_directory - ${DOC_OUTPUT_PATH}/html - "${CMAKE_INSTALL_PREFIX}/share/doc/${CMAKE_PROJECT_NAME}/html" - ) + COMMAND ${CMAKE_COMMAND} -DCOMPONENT=doc -P ${CMAKE_BINARY_DIR}/cmake_install.cmake + COMMENT "Installing API documentation") add_dependencies(install-doc doc) - install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} install-doc)") + install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} doc)") + + install(DIRECTORY ${DOC_OUTPUT_PATH}/html + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/${CMAKE_PROJECT_NAME}" + COMPONENT doc) endif(DOXYGEN_FOUND)