mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
41f9efb519
commit
d636936877
@ -565,6 +565,7 @@ if(LYX_INSTALL)
|
||||
include(../Install)
|
||||
endif()
|
||||
|
||||
add_subdirectory(sourcedoc "${TOP_BINARY_DIR}/sourcedoc")
|
||||
|
||||
message(STATUS)
|
||||
message(STATUS "Build options, switch LYX_* variables by -DLYX_*=1 or 0:")
|
||||
|
22
sourcedoc/CMakeLists.txt
Normal file
22
sourcedoc/CMakeLists.txt
Normal 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()
|
||||
|
Loading…
Reference in New Issue
Block a user