1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: The ALICE Off-line Project. *
5 # * Contributors are mentioned in the code where appropriate. *
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 # **************************************************************************
18 # Prepare Doxygen config from template
20 ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
21 ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
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"
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/
36 COMMENT "Installing AliRoot Core reference manual"
39 # Install utilities to bin/
40 install(PROGRAMS alidoxyimg.sh thtml2doxy.py DESTINATION bin)
42 endif(CAN_GENERATE_DOC)