find_package(Doxygen REQUIRED dot mscgen OPTIONAL_COMPONENTS dia)
if(DOXYGEN_VERSION LESS 1.8)
  message(SEND_ERROR "Your Doxygen is to old!")
endif(DOXYGEN_VERSION LESS 1.8)
set(DOXYGEN_RECURSIVE YES)
set(DOXYGEN_HTML_COLORSTYLE_HUE 133)
set(DOXYGEN_HTML_COLORSTYLE_SAT 143)
set(DOXYGEN_HTML_COLORSTYLE_GAMMA 162)
set(DOXYGEN_CREATE_SUBDIRS YES)
set(DOXYGEN_TAB_SIZE 2)
set(DOXYGEN_AUTOLINK_SUPPORT YES)
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_EXTRACT_PRIVATE YES)
set(DOXYGEN_WARN_NO_PARAMDOC YES)
set(DOXYGEN_RECURSIVE YES)
set(DOXYGEN_CLANG_ASSISTED_PARSING YES)
#FIXME(denisacostaq@gmail.com): remove al clang backend warnings
set(DOXYGEN_CLANG_OPTIONS "-I ${CMAKE_CURRENT_LIST_DIR}/../ -isystem ${CMAKE_CURRENT_LIST_DIR}/../src/protocol")
set(DOXYGEN_HIDE_UNDOC_RELATIONS NO)
set(DOXYGEN_DOT_NUM_THREADS ${N_PROC})
set(DOXYGEN_TEMPLATE_RELATIONS YES)
set(DOXYGEN_CALL_GRAPH YES)
set(DOXYGEN_CALLER_GRAPH YES)
set(DOXYGEN_INTERACTIVE_SVG YES)
set(DOXYGEN_DOT_TRANSPARENT YES)
