doc: add an install target
authorAntonio Ospite <ospite@studenti.unina.it>
Wed, 7 Mar 2012 22:12:30 +0000 (23:12 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Wed, 7 Mar 2012 22:12:30 +0000 (23:12 +0100)
For now only Unix-style destinations are supported, we will abstract
them out when the need raises.

doc/CMakeLists.txt

index 81a7c45..ce111b2 100644 (file)
@@ -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)