mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-29 15:26:05 +00:00
ee419218be
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38777 a592a061-630c-0410-9148-cb99ea01b6c8
26 lines
764 B
CMake
26 lines
764 B
CMake
# 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()
|
|
set(VERSION ${PACKAGE_VERSION})
|
|
set(top_srcdir "${TOP_SRC_DIR}")
|
|
configure_file("${TOP_SRC_DIR}/sourcedoc/Doxyfile.in" Doxyfile @ONLY)
|
|
add_custom_command(
|
|
OUTPUT doxy_created
|
|
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
|
|
COMMAND ${CMAKE_COMMAND} -E touch doxy_created
|
|
DEPENDS Doxyfile
|
|
)
|
|
add_custom_target(doxydoc DEPENDS doxy_created)
|
|
endif()
|
|
|