Skip to content
Snippets Groups Projects
Commit afee2743 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Doxygen ignores existens of doc/doxygen/html/index.html in src

parent 961a15ed
No related branches found
No related tags found
No related merge requests found
......@@ -47,26 +47,20 @@ MACRO (add_doxygen_target)
set(DOXYSTYLE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Doxystyle)
endif("${CMAKE_PROJECT_NAME}" STREQUAL "dune-common")
message(STATUS "Using scripts from ${SCRIPT_DIR} for creating doxygen stuff.")
set(_src_file _src_file-NOTFOUND)
find_file(_src_file index.html ${CMAKE_CURRENT_SOURCE_DIR}/html)
if(_src_file)
set(_src_dir ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_target(doxygen_${ProjectName})
else(_src_file)
if(DOXYGEN_FOUND)
prepare_doxyfile()
# A custom command that exectutes doxygen
add_custom_command(OUTPUT html COMMAND
${CMAKE_COMMAND} -D DOXYGEN_EXECUTABLE=${DOXYGEN_EXECUTABLE} -P ${SCRIPT_DIR}/RunDoxygen.cmake
COMMENT "Running doxygen documentation. This may take a while"
DEPENDS Doxyfile.in)
# Create a target for building the doxygen documentation of a module,
# that is run during make doc.
add_custom_target(doxygen_${ProjectName} DEPENDS html)
add_dependencies(doc doxygen_${ProjectName})
endif(DOXYGEN_FOUND)
set(_src_dir ${CMAKE_CURRENT_BINARY_DIR})
endif(_src_file)
if(DOXYGEN_FOUND)
prepare_doxyfile()
# A custom command that executes doxygen
add_custom_command(OUTPUT html
COMMAND ${CMAKE_COMMAND} -D DOXYGEN_EXECUTABLE=${DOXYGEN_EXECUTABLE} -P ${SCRIPT_DIR}/RunDoxygen.cmake
COMMENT "Running doxygen documentation. This may take a while"
DEPENDS Doxyfile.in)
# Create a target for building the doxygen documentation of a module,
# that is run during make doc
add_custom_target(doxygen_${ProjectName}
DEPENDS html)
add_dependencies(doc doxygen_${ProjectName})
endif(DOXYGEN_FOUND)
# Use a cmake call to install the doxygen documentation and create a
# target for it
......@@ -76,10 +70,10 @@ MACRO (add_doxygen_target)
"execute_process(COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target doxygen_${ProjectName}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
file(GLOB doxygenfiles
GLOB ${_src_dir}/html/*.html
${_src_dir}/html/*.png
${_src_dir}/html/*.css
${_src_dir}/html/*.gif)
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 \"\${doxygenfiles}\")
foreach(_file \${doxygenfiles})
get_filename_component(_basename \${_file} 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