CreateDoxyFile.cmake 578 Bytes
Newer Older
1 2 3
#For now we just support appending Doxyfile and Doxylocal
FILE(READ ${DOXYSTYLE} file_contents)
FILE(WRITE Doxyfile.in ${file_contents})
4 5 6
if(_DOXYLOCAL)
  FILE(READ ${DOXYLOCAL} file_contents)
endif()
7
FILE(APPEND Doxyfile.in ${file_contents})
8

9 10
# configure_file does not work as it insists an existing input file, which in our
# needs to be generated first.
11
# Therefore we read the Doxyfile.in and replace the variables using STRING(CONFIGURE)
12
# and the write the file.
13
FILE(READ Doxyfile.in file_contents)
14
STRING(CONFIGURE ${file_contents} output)
15
FILE(WRITE Doxyfile ${output})