summaryrefslogtreecommitdiffstats
path: root/lib/doc
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-01-31 17:19:26 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2019-01-31 17:48:51 +0100
commit2d2552c4f907a25255b1b6b8071b7e58b1c23515 (patch)
tree7d2811f94eb39fa2084d05f49e552bc14eac0ce4 /lib/doc
parent7b61129b2ed89d2cc3ca5560f55c26c6c347a215 (diff)
HICN-9 make doc lib
Change-Id: I349c53b527df2445cd2d521555ff64af2400a8b2 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'lib/doc')
-rw-r--r--lib/doc/CMakeLists.txt4
-rw-r--r--lib/doc/Doxyfile.in2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/doc/CMakeLists.txt b/lib/doc/CMakeLists.txt
index cf022dc52..9b4660337 100644
--- a/lib/doc/CMakeLists.txt
+++ b/lib/doc/CMakeLists.txt
@@ -7,6 +7,7 @@ if(BUILD_DOCUMENTATION)
message(FATAL_ERROR "Doxygen is needed to build the documentation.")
endif()
+ set(doxy_main_page ${CMAKE_CURRENT_SOURCE_DIR}/../README.md)
set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
@@ -18,6 +19,5 @@ if(BUILD_DOCUMENTATION)
COMMENT "Generating API documentation with Doxygen"
VERBATIM)
-# FIXME MS : wrong install path
- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc)
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc OPTIONAL)
endif()
diff --git a/lib/doc/Doxyfile.in b/lib/doc/Doxyfile.in
index 839de9f8a..ce352c734 100644
--- a/lib/doc/Doxyfile.in
+++ b/lib/doc/Doxyfile.in
@@ -9,4 +9,4 @@ FILE_PATTERNS = *.md \
*.h \
*.cc
RECURSIVE = YES
-USE_MDFILE_AS_MAINPAGE = ../README.md
+USE_MDFILE_AS_MAINPAGE = @doxy_main_page@