File: CMakeLists.txt

package info (click to toggle)
lyx 2.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 121,196 kB
  • sloc: cpp: 405,401; ansic: 106,819; python: 27,007; sh: 6,826; makefile: 5,497; pascal: 2,055; perl: 1,523; objc: 1,025; tcl: 163; xml: 153; sed: 16
file content (25 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY)
  add_custom_command(
    OUTPUT doxy_created
    COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
    COMMAND ${CMAKE_COMMAND} -E touch doxy_created
    DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
  )
  add_custom_target(doxydoc DEPENDS doxy_created)
endif()