aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-04-07 21:43:54 -0700
committerMartin Braun <martin.braun@ettus.com>2016-04-07 21:43:54 -0700
commit62f80e22b22eb076e649fc0aee8bbb2c292fa17b (patch)
tree5c10103097bf0752c86935130133eb67c9e0e0a9
parent1a002d38ac27656d0bae4a06314add0f586195d1 (diff)
downloaduhd-62f80e22b22eb076e649fc0aee8bbb2c292fa17b.tar.gz
uhd-62f80e22b22eb076e649fc0aee8bbb2c292fa17b.tar.bz2
uhd-62f80e22b22eb076e649fc0aee8bbb2c292fa17b.zip
cmake: Enable use of dot for Doxygen
-rw-r--r--host/docs/CMakeLists.txt7
-rw-r--r--host/docs/Doxyfile.in2
2 files changed, 8 insertions, 1 deletions
diff --git a/host/docs/CMakeLists.txt b/host/docs/CMakeLists.txt
index 3090d3f80..96f388b2e 100644
--- a/host/docs/CMakeLists.txt
+++ b/host/docs/CMakeLists.txt
@@ -66,6 +66,7 @@ ENDIF(ENABLE_MANUAL)
MESSAGE(STATUS "")
LIBUHD_REGISTER_COMPONENT("API/Doxygen" ENABLE_DOXYGEN ON "DOXYGEN_FOUND" OFF OFF)
OPTION(ENABLE_DOXYGEN_FULL "Use Doxygen to document the entire source tree (not just API)" OFF)
+OPTION(ENABLE_DOXYGEN_DOT "Let Doxygen use dot (requires graphviz)" OFF)
IF(LIBUHDDEV_PKG)
SET(PKG_DOC_DIR share/doc/libuhd-dev)
@@ -94,6 +95,12 @@ MESSAGE(STATUS "")
IF(ENABLE_MANUAL_OR_DOXYGEN)
#generate the doxygen configuration file
SET(CMAKE_CURRENT_BINARY_DIR_DOXYGEN ${CMAKE_CURRENT_BINARY_DIR}/doxygen)
+ IF(ENABLE_DOXYGEN_DOT)
+ SET(DOXYGEN_HAVE_DOT "YES")
+ ELSE(ENABLE_DOXYGEN_DOT)
+ SET(DOXYGEN_HAVE_DOT "NO")
+ ENDIF(ENABLE_DOXYGEN_DOT)
+
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
diff --git a/host/docs/Doxyfile.in b/host/docs/Doxyfile.in
index d984b6f6b..8aa6299ae 100644
--- a/host/docs/Doxyfile.in
+++ b/host/docs/Doxyfile.in
@@ -1686,7 +1686,7 @@ HIDE_UNDOC_RELATIONS = YES
# toolkit from AT&T and Lucent Bell Labs. The other options in this section
# have no effect if this option is set to NO (the default)
-HAVE_DOT = NO
+HAVE_DOT = @DOXYGEN_HAVE_DOT@
# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is
# allowed to run in parallel. When set to 0 (the default) doxygen will