File: CreateDoxyFile.cmake

package info (click to toggle)
dune-common 2.10.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,804 kB
  • sloc: cpp: 52,256; python: 3,979; sh: 1,658; makefile: 17
file content (21 lines) | stat: -rw-r--r-- 889 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
# SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception

# For now we just support appending Doxyfile and Doxylocal
file(READ ${DOXYSTYLE} file_contents)
file(WRITE Doxyfile.in ${file_contents})
# Write the list of predefined C preprocessor macros
file(READ ${DOXYGENMACROS} file_contents)
file(APPEND Doxyfile.in ${file_contents})
if(DOXYLOCAL)
  file(READ ${DOXYLOCAL} file_contents)
endif()
file(APPEND Doxyfile.in ${file_contents})

# configure_file does not work as it insists an existing input file, which in our
# needs to be generated first.
# Therefore we read the Doxyfile.in and replace the variables using string(CONFIGURE)
# and then write the file.
file(READ Doxyfile.in file_contents)
string(CONFIGURE ${file_contents} output)
file(WRITE Doxyfile ${output})