]> git.uio.no Git - u/mrichter/AliRoot.git/blame - doxygen/CMakeLists.txt
Merge branch 'feature-doxygen'
[u/mrichter/AliRoot.git] / doxygen / CMakeLists.txt
CommitLineData
a2a27b4c 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
16if(CAN_GENERATE_DOC)
17
9af080b1 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 )
a2a27b4c 24
9af080b1 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 )
eeac1134 31
9af080b1 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 )
a2a27b4c 38
9af080b1 39 # Install utilities to bin/
40 install(PROGRAMS alidoxyimg.sh thtml2doxy.py DESTINATION bin)
6cbb53dc 41
a2a27b4c 42endif(CAN_GENERATE_DOC)