From ca632f3053d6cb779b385b51f6615a59953a6107 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 7 Mar 2012 23:12:30 +0100 Subject: [PATCH] doc: add an install target For now only Unix-style destinations are supported, we will abstract them out when the need raises. --- doc/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.1.4