]> git.uio.no Git - u/mrichter/AliRoot.git/blob - doxygen/CMakeLists.txt
doxy: added MUON
[u/mrichter/AliRoot.git] / doxygen / CMakeLists.txt
1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
3 # *                                                                        *
4 # * Author: The ALICE Off-line Project.                                    *
5 # * Contributors are mentioned in the code where appropriate.              *
6 # *                                                                        *
7 # * Permission to use, copy, modify and distribute this software and its   *
8 # * documentation strictly for non-commercial purposes is hereby granted   *
9 # * without fee, provided that the above copyright notice appears in all   *
10 # * copies and that both the copyright notice and this permission notice   *
11 # * appear in the supporting documentation. The authors make no claims     *
12 # * about the suitability of this software for any purpose. It is          *
13 # * provided "as is" without express or implied warranty.                  *
14 # **************************************************************************
15
16 if(CAN_GENERATE_DOC)
17
18   # Prepare Doxygen config from template
19   configure_file(
20     ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
21     ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
22     @ONLY
23   )
24
25   # Generate doc in build dir by using "make doxygen"
26   add_custom_target(doxygen
27     ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
28     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
29     COMMENT "Generating AliRoot Core reference manual using Doxygen"
30   )
31
32   # Install documentation in the installation directory if requested
33   add_custom_target(install-doxygen
34     rsync -a --delete @CMAKE_CURRENT_BINARY_DIR@/html/ @CMAKE_INSTALL_PREFIX@/doxygen/
35     DEPENDS doxygen
36     COMMENT "Installing AliRoot Core reference manual"
37   )
38
39   # Install utilities to bin/
40   install(PROGRAMS alidoxyimg.sh thtml2doxy.py DESTINATION bin)
41
42 endif(CAN_GENERATE_DOC)