Adding upstream version 2.0.24.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e508fcfeb9
commit
afb0a8fea7
118 changed files with 45084 additions and 0 deletions
28
CMakeModules/GenDoc.cmake
Normal file
28
CMakeModules/GenDoc.cmake
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Prepare building doxygen documentation
|
||||
macro(GEN_DOC INPUT_FILES PROJECT_VERSION PROJECT_DESCRIPTION DOC_LOGO)
|
||||
find_package(Doxygen)
|
||||
if(DOXYGEN_FOUND)
|
||||
find_program(DOT_PATH dot PATH_SUFFIXES graphviz2.38/bin graphviz/bin)
|
||||
if(DOT_PATH)
|
||||
set(HAVE_DOT "YES")
|
||||
else()
|
||||
set(HAVE_DOT "NO")
|
||||
message(AUTHOR_WARNING "Doxygen: to generate UML diagrams please install graphviz")
|
||||
endif()
|
||||
|
||||
# target doc
|
||||
add_custom_target(doc
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# generate list with spaces as separators
|
||||
string(REPLACE ";" " " DOXY_INPUT "${INPUT_FILES}")
|
||||
|
||||
# make other arguments into variables
|
||||
set(PROJECT_VERSION ${PROJECT_VERSION})
|
||||
set(PROJECT_DESCRIPTION ${PROJECT_DESCRIPTION})
|
||||
set(DOC_LOGO ${DOC_LOGO})
|
||||
|
||||
configure_file(Doxyfile.in Doxyfile)
|
||||
endif()
|
||||
endmacro()
|
Loading…
Add table
Add a link
Reference in a new issue