Added doxygen target if found doxygen executable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38775 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2011-05-16 10:51:33 +00:00
parent 41f9efb519
commit d636936877
2 changed files with 23 additions and 0 deletions

View File

@ -565,6 +565,7 @@ if(LYX_INSTALL)
include(../Install) include(../Install)
endif() endif()
add_subdirectory(sourcedoc "${TOP_BINARY_DIR}/sourcedoc")
message(STATUS) message(STATUS)
message(STATUS "Build options, switch LYX_* variables by -DLYX_*=1 or 0:") message(STATUS "Build options, switch LYX_* variables by -DLYX_*=1 or 0:")

22
sourcedoc/CMakeLists.txt Normal file
View File

@ -0,0 +1,22 @@
# 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()
add_custom_command(
OUTPUT doxy_created
COMMAND ${DOXYGEN_EXECUTABLE} ${TOP_SRC_DIR}/sourcedoc/Doxyfile
COMMAND ${CMAKE_COMMAND} -E touch doxy_created
DEPENDS ${TOP_SRC_DIR}/sourcedoc/Doxyfile
)
add_custom_target(doxydoc DEPENDS doxy_created)
endif()