2011-05-16 10:51:33 +00:00
|
|
|
# This file is part of LyX, the document processor.
|
|
|
|
# Licence details can be found in the file COPYING.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 Peter Kümmel, <syntheticpp@gmx.net>
|
|
|
|
# Copyright (c) 2011 Kornel Benko, <Kornel.Benko@berlin.de>
|
|
|
|
#
|
|
|
|
|
|
|
|
project(doxydoc)
|
|
|
|
|
|
|
|
find_program(DOXYGEN_EXECUTABLE doxygen)
|
|
|
|
if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND")
|
|
|
|
message(STATUS "doxygen not found, ==> no doxygen creation")
|
|
|
|
else()
|
2011-05-16 11:54:54 +00:00
|
|
|
set(VERSION ${PACKAGE_VERSION})
|
|
|
|
set(top_srcdir "${TOP_SRC_DIR}")
|
2011-12-06 11:34:27 +00:00
|
|
|
configure_file("${TOP_SRC_DIR}/sourcedoc/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY)
|
2011-05-16 10:51:33 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT doxy_created
|
2011-12-06 11:34:27 +00:00
|
|
|
COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
|
2011-05-16 10:51:33 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E touch doxy_created
|
2011-12-06 11:34:27 +00:00
|
|
|
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
|
2011-05-16 10:51:33 +00:00
|
|
|
)
|
|
|
|
add_custom_target(doxydoc DEPENDS doxy_created)
|
|
|
|
endif()
|
|
|
|
|