From 05d63c565cdcc46eed16aa6be1784cb0ed3447de Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Wed, 18 May 2016 16:26:23 +0200
Subject: [PATCH] Add a cache variable to make doxygen create a treeview in
 html documentation.

---
 CMakeLists.txt        | 3 +++
 doc/Doxyfile.extra.in | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 22ba1cd0..f00c452c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,9 @@ ENDIF()
 # Activate test using UR5 if requested
 SET (TEST_UR5 FALSE CACHE BOOL "Activate tests using ur5")
 
+# Ask Doxygen to create a tree view in html documentation
+SET(DOXYGEN_TREEVIEW "NO" CACHE STRING "Set to YES to generate a tree view in the html documentation")
+
 SEARCH_FOR_BOOST()
 ADD_DOC_DEPENDENCY("hpp-model >= 3.0.0")
 ADD_DOC_DEPENDENCY("hpp-fcl")
diff --git a/doc/Doxyfile.extra.in b/doc/Doxyfile.extra.in
index c9813936..973b6217 100644
--- a/doc/Doxyfile.extra.in
+++ b/doc/Doxyfile.extra.in
@@ -14,3 +14,5 @@ ALIASES   += Link{1}="\ref \1"
 ALIASES   += Link{2}="\ref \1 \"\2\""
 ALIASES   += LHPP{2}="\Link{hpp::\1::\2,\2}"
 ALIASES   += LModel{1}="\LHPP{model,\1}"
+
+GENERATE_TREEVIEW	 = @DOXYGEN_TREEVIEW@
-- 
GitLab