1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2011 Peter Kümmel, <syntheticpp@gmx.net>
5 # Copyright (c) 2011 Kornel Benko, <Kornel.Benko@berlin.de>
10 find_program(DOXYGEN_EXECUTABLE doxygen)
11 if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND")
12 message(STATUS "doxygen not found ==> no doxygen creation")
14 set(VERSION ${PACKAGE_VERSION})
15 set(top_srcdir "${TOP_SRC_DIR}")
16 configure_file("${TOP_SRC_DIR}/sourcedoc/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY)
19 COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
20 COMMAND ${CMAKE_COMMAND} -E touch doxy_created
21 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
23 add_custom_target(doxydoc DEPENDS doxy_created)