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

Use better status messages

[[Imported from SVN: r6739]]
parent 31d80e66
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,10 @@ add_custom_target(doxygen_install)
#
# prepare_doxyfile()
# This functions adds the necessary routines for the generation of the Doxyfile[.in] files needed to doxygen.
# This functions adds the necessary routines for the generation of the
# Doxyfile[.in] files needed to doxygen.
MACRO (prepare_doxyfile)
message("DOXYSTYLE_FILE=${DOXYSTYLE_FILE}")
message(STATUS "using ${DOXYSTYLE_FILE} to create doxystyle file")
set(make_doxyfile_command ${CMAKE_COMMAND} -D DOT_TRUE=${DOT_TRUE} -D DUNEWEB_TRUE=\# -D DUNE_MOD_NAME=${DUNE_MOD_NAME} -D DUNE_MOD_VERSION=${DUNE_MOD_VERSION} -D DOXYSTYLE=${DOXYSTYLE_FILE} -D DOXYLOCAL=${CMAKE_CURRENT_SOURCE_DIR}/Doxylocal -D abs_top_srcdir=${CMAKE_SOURCE_DIR} -D srcdir=${CMAKE_CURRENT_SOURCE_DIR} -D top_srcdir=${CMAKE_SOURCE_DIR} -P ${SCRIPT_DIR}/CreateDoxyFile.cmake)
add_custom_command (OUTPUT Doxyfile.in Doxyfile
COMMAND ${make_doxyfile_command} COMMENT "Creating Doxyfile.in")
......@@ -33,11 +34,10 @@ MACRO (add_doxygen_target)
if("${CMAKE_PROJECT_NAME}" STREQUAL "dune-common")
set(DOXYSTYLE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Doxystyle)
endif("${CMAKE_PROJECT_NAME}" STREQUAL "dune-common")
message("doxygen ${SCRIPT_DIR}")
message(STATUS "Using scripts from ${SCRIPT_DIR} for creating doxygen stuff.")
prepare_doxyfile()
# A custom command that exectutes doxygen
add_custom_command(OUTPUT html COMMAND
#${DOXYGEN_EXECUTABLE} Doxyfile
${CMAKE_COMMAND} -D DOXYGEN_EXECUTABLE=${DOXYGEN_EXECUTABLE} -P ${SCRIPT_DIR}/RunDoxygen.cmake
COMMENT "Running doxygen documentation. This may take a while"
DEPENDS Doxyfile)
......@@ -46,9 +46,13 @@ MACRO (add_doxygen_target)
add_custom_target(doxygen_${DUNE_MOD_NAME} DEPENDS html)
add_dependencies(doc doxygen_${DUNE_MOD_NAME})
# Use a cmake call to install the doxygen documentation and create a target for it
file(GLOB doxygenfiles GLOB ${CMAKE_CURRENT_BINARY_DIR}/html/*.html ${CMAKE_CURRENT_BINARY_DIR}/html/*.png ${CMAKE_CURRENT_BINARY_DIR}/html/*.css ${CMAKE_CURRENT_BINARY_DIR}/html/*.gif)
# Use a cmake call to install the doxygen documentation and create a
# target for it
file(GLOB doxygenfiles
GLOB ${CMAKE_CURRENT_BINARY_DIR}/html/*.html
${CMAKE_CURRENT_BINARY_DIR}/html/*.png
${CMAKE_CURRENT_BINARY_DIR}/html/*.css
${CMAKE_CURRENT_BINARY_DIR}/html/*.gif)
set(doxygenfiles "${CMAKE_CURRENT_BINARY_DIR}/doxygen.log;${CMAKE_CURRENT_BINARY_DIR}/doxyerr.log;${doxygenfiles}")
set(install_doxygen_command ${CMAKE_COMMAND} -D FILES="${doxygenfiles}" -D DIR=${CMAKE_INSTALL_PREFIX}/share/doc/${DUNE_MOD_NAME}/doxygen -P ${SCRIPT_DIR}/InstallFile.cmake)
add_custom_target(doxygen_install_${DUNE_MOD_NAME}
......
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