Skip to content

Commit

Permalink
Doxygen documentation: BiB references and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Dec 1, 2014
1 parent 1523fdc commit 03e213c
Show file tree
Hide file tree
Showing 24 changed files with 911 additions and 499 deletions.
18 changes: 13 additions & 5 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,27 @@ if(BUILD_DOCS AND HAVE_DOXYGEN)
set(paths_include)
set(paths_doc)
set(paths_bib)
set(deps)
foreach(m ${BASE_MODULES} ${EXTRA_MODULES})
list(FIND blacklist ${m} _pos)
if(${_pos} EQUAL -1)
# include folder
set(header_dir "${OPENCV_MODULE_opencv_${m}_LOCATION}/include")
if(EXISTS "${header_dir}")
list(APPEND paths_include "${header_dir}")
list(APPEND deps ${header_dir})
endif()
# doc folder
set(docs_dir "${OPENCV_MODULE_opencv_${m}_LOCATION}/doc")
if(EXISTS "${docs_dir}")
list(APPEND paths_doc "${docs_dir}")
file(GLOB bib_file "${docs_dir}" "*.bib")
if(EXISTS "${bib_file}")
list(APPEND paths_bib "${bib_file}")
endif()
list(APPEND deps ${docs_dir})
endif()
# BiBTeX file
set(bib_file "${docs_dir}/${m}.bib")
if(EXISTS "${bib_file}")
set(paths_bib "${paths_bib} ${bib_file}")
list(APPEND deps ${bib_file})
endif()
endif()
endforeach()
Expand All @@ -204,10 +211,11 @@ if(BUILD_DOCS AND HAVE_DOXYGEN)
configure_file(Doxyfile.in ${doxyfile} @ONLY)
configure_file(root.markdown.in ${rootfile} @ONLY)
configure_file(mymath.sty "${CMAKE_DOXYGEN_OUTPUT_PATH}/html/mymath.sty" @ONLY)
configure_file(mymath.sty "${CMAKE_DOXYGEN_OUTPUT_PATH}/latex/mymath.sty" @ONLY)

add_custom_target(doxygen
COMMAND ${DOXYGEN_BUILD} ${doxyfile}
DEPENDS ${doxyfile} ${all_headers} ${all_images})
DEPENDS ${doxyfile} ${rootfile} ${bibfile} ${deps})
endif()

if(HAVE_DOC_GENERATOR)
Expand Down
2 changes: 2 additions & 0 deletions doc/disabled_doc_warnings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# doxygen citelist build workaround
citelist : .*Unexpected new line character.*
Loading

0 comments on commit 03e213c

Please sign in to comment.