Skip to content
Snippets Groups Projects
Commit 2781b4a3 authored by Markus Blatt's avatar Markus Blatt
Browse files

[Merge][CMake] Merged revisions : 6620

Revision  r6620
.----------------------
Create a rudimentary Doxyfile using cmake.

.----------------------


[[Imported from SVN: r7162]]
parents 869634d3 3e85b124
No related branches found
No related tags found
No related merge requests found
#For now we just support appending Doxyfile and Doxylocal
message("Generating Doxyfile.in")
FILE(READ ${DOXYSTYLE} file_contents)
FILE(WRITE Doxyfile.in ${file_contents})
FILE(READ ${DOXYLOCAL} file_contents)
FILE(APPEND Doxyfile.in ${file_contents})
message("Generating Doxyfile")
FILE(READ Doxyfile.in file_contents)
STRING(CONFIGURE ${file_contents} output})
FILE(WRITE Doxyfile ${output})
# quickhack for creating the Doxyfile.in and Doxyfile
add_custom_command (OUTPUT Doxyfile.in Doxyfile
COMMAND ${CMAKE_COMMAND} -D DOXYSTYLE=${CMAKE_CURRENT_SOURCE_DIR}/Doxystyle -D DOXYLOCAL=${CMAKE_CURRENT_SOURCE_DIR}/Doxylocal -D abs_top_src_dir=${CMAKE_SOURCE_DIR} -D src_dir=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/CreateDoxyFile.cmake COMMENT "Creating Doxyfile.in")
add_custom_target(Doxyfile DEPENDS Doxyfile.in)
add_dependencies(doc Doxyfile)
install(FILES Doxystyle DESTINATION share/dune-common/doc/doxygen)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment