doxy: install-doxygen target
authordberzano <dario.berzano@cern.ch>
Tue, 10 Feb 2015 15:20:14 +0000 (16:20 +0100)
committerdberzano <dario.berzano@cern.ch>
Tue, 10 Feb 2015 15:40:30 +0000 (16:40 +0100)
doxygen/CMakeLists.txt

index fe60b2a..9336a13 100644 (file)
@@ -26,8 +26,14 @@ if(CAN_GENERATE_DOC)
     add_custom_target(doxygen
         ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
         WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-        COMMENT "Generating AliRoot reference manual using Doxygen"
-        VERBATIM
+        COMMENT "Generating AliRoot Core reference manual using Doxygen"
+    )
+
+    # install documentation in the installation directory if requested
+    add_custom_target(install-doxygen
+        rsync -a --delete @CMAKE_CURRENT_BINARY_DIR@/html/ @CMAKE_INSTALL_PREFIX@/doxygen/
+        DEPENDS doxygen
+        COMMENT "Installing AliRoot Core reference manual"
     )
 
     # install the helper script to generate images from ROOT macros