X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/dbb6f1e7ec9a0fb7ca077062864767d3b60ef813..c4734c5b21355542c5718478f73ddf60ecf559fb:/doc/CMakeLists.txt diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 81a7c45..c1995f7 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -8,4 +8,16 @@ if(DOXYGEN_FOUND) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM ) + + add_custom_target(install-doc + ${CMAKE_COMMAND} -E copy_directory + ${DOC_OUTPUT_PATH}/html + "${CMAKE_INSTALL_PREFIX}/share/doc/${CMAKE_PROJECT_NAME}/html" + ) + add_dependencies(install-doc doc) + + install(CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} install-doc)") + endif(DOXYGEN_FOUND) + +add_subdirectory(man)