Commit 9c78c8e3 authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

cmake doxygen support improved

parent e23100b0
...@@ -27,6 +27,10 @@ if(NOT DEFINED MAKE_DOXYGEN) ...@@ -27,6 +27,10 @@ if(NOT DEFINED MAKE_DOXYGEN)
message("MAKE_DOXYGEN was not defined, defaulting to FALSE") message("MAKE_DOXYGEN was not defined, defaulting to FALSE")
endif() endif()
if(NOT DEFINED DOXYGEN_OUTPUT_DIRECTORY)
set(DOXYGEN_OUTPUT_DIRECTORY "." CACHE FILEPATH "Doxygen output directory (relative to <build>/fmwk)")
endif()
if(MAKE_DOXYGEN) if(MAKE_DOXYGEN)
find_package(Doxygen REQUIRED dot) find_package(Doxygen REQUIRED dot)
endif() endif()
...@@ -174,6 +178,8 @@ endfunction() ...@@ -174,6 +178,8 @@ endfunction()
function(DOXYGEN TARGET) function(DOXYGEN TARGET)
if(MAKE_DOXYGEN) if(MAKE_DOXYGEN)
set(DOXYGEN_DOT_IMAGE_FORMAT svg)
#set(DOXYGEN_GENERATE_TAGFILE "fmwk.tag")
doxygen_add_docs("${TARGET}" ${ARGN} ALL) doxygen_add_docs("${TARGET}" ${ARGN} ALL)
endif() endif()
endfunction() endfunction()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment