summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-01-31 16:56:40 +0000
committerGerrit Code Review <gerrit@fd.io>2019-01-31 16:56:40 +0000
commitbf29f9a52ffa3a1f32f700e4fd36ea53885d83aa (patch)
tree019183b511349d242150856aca184631248f8e9e
parent4d3c71e9ae772d020220596636bc6e3ea07741e5 (diff)
parent2d2552c4f907a25255b1b6b8071b7e58b1c23515 (diff)
Merge "HICN-9 make doc lib"
-rw-r--r--lib/CMakeLists.txt4
-rw-r--r--lib/doc/CMakeLists.txt4
-rw-r--r--lib/doc/Doxyfile.in2
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 8b0280d7b..44d8526c6 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -49,4 +49,6 @@ if (ANDROID_API)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ANDROID_C_FLAGS} -std=c99")
endif ()
-add_subdirectory (src) \ No newline at end of file
+add_subdirectory (src)
+add_subdirectory (doc)
+
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@