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

[Merge][CMake] Merged revisions : 6622

Revision  r6622
.----------------------
Started our own doxygen CMake rules. We cannot use UseDoxygen.cmake as
Doyfile.in needs to be generated.

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


[[Imported from SVN: r7164]]
parents 42397b22 a6153abf
No related branches found
No related tags found
No related merge requests found
FIND_PACKAGE(Doxygen)
if (NOT DOXYGEN_DOT_FOUND)
set(DOT_TRUE '\#')
endif (NOT DOXYGEN_DOT_FOUND)
message('${DOT_TRUE}')
#
# prepare_doyfile()
# This functions adds the necessary routines for the generation of the Doxyfile[.in] files needed to doxygen.
FUNCTION (prepare_doxyfile)
set(make_doxyfile_command ${CMAKE_COMMAND} -D DUNE_MOD_NAME=${DUNE_MOD_NAME} -D DUNE_MOD_VERSION=${DUNE_MOD_VERSION} -D DOXYSTYLE=${CMAKE_CURRENT_SOURCE_DIR}/Doxystyle -D DOXYLOCAL=${CMAKE_CURRENT_SOURCE_DIR}/Doxylocal -D abs_top_srcdir=${CMAKE_SOURCE_DIR} -D srcdir=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_SOURCE_DIR}/cmake/scripts/CreateDoxyFile.cmake)
add_custom_command (OUTPUT Doxyfile.in Doxyfile
COMMAND ${make_doxyfile_command} COMMENT "Creating Doxyfile.in")
add_custom_target(Doxyfile DEPENDS Doxyfile.in Doxyfile)
ENDFUNCTION (prepare_doxyfile)
# 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)
include(DUNEDoxygen)
prepare_doxyfile()
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