From: Antonio Ospite Date: Wed, 7 Mar 2012 22:12:30 +0000 (+0100) Subject: doc: add an install target X-Git-Tag: v0.1.0~1^2~20 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/ca632f3053d6cb779b385b51f6615a59953a6107 doc: add an install target For now only Unix-style destinations are supported, we will abstract them out when the need raises. --- diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 81a7c45..ce111b2 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -8,4 +8,8 @@ if(DOXYGEN_FOUND) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM ) + + install(DIRECTORY ${DOC_OUTPUT_PATH}/html + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/${CMAKE_PROJECT_NAME}") + endif(DOXYGEN_FOUND)