From 289886021add9711c052ccf66859b6370a9193a5 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <contini.mailing@gmail.com>
Date: 周六, 01 2月 2020 18:00:58 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/develop' into feature/pc_identifiers

---
 CMakeLists.txt |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1029c46..f32e9b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,7 +141,6 @@
 endif()
 SET( Boost_USE_STATIC_LIBS ON )
 find_package(Boost COMPONENTS unit_test_framework system filesystem)
-
 #if boost is found enable tests
 IF(Boost_FOUND)
 	INCLUDE(CTest)
@@ -155,6 +154,19 @@
 	message(WARNING "Boost not found, disabling tests")
 ENDIF(Boost_FOUND)
 
+find_package(Doxygen COMPONENTS dot)
+IF(Doxygen_FOUND)
+    message(STATUS "Doxygen found, generating docs.")
+    SET(DOXYGEN_EXCLUDE_PATTERNS "*/library/ini/*;*/doc/resources/*")
+    SET(DOXYGEN_DISABLE_INDEX YES)
+    SET(DOXYGEN_GENERATE_TREEVIEW YES)
+    SET(DOXYGEN_LAYOUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/doc/DoxygenLayout.xml")
+	doxygen_add_docs(docs doc src include/licensecc COMMENT "doxygen docs")
+	file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/doc/resources/" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/html")
+ELSE(Doxygen_FOUND)
+	message(STATUS "Doxygen not found, not generating docs.")
+ENDIF(Doxygen_FOUND)
+
 install(DIRECTORY ${LCC_INCLUDE_DIR} DESTINATION include/${PROJECT_NAME})
 install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include)
 install(FILES src/cmake/licensecc-config.cmake DESTINATION ${main_lib_dest})
@@ -163,3 +175,4 @@
 write_basic_package_version_file(${CMAKE_BINARY_DIR}/licensecc-config-version.cmake COMPATIBILITY SameMajorVersion)
 install(FILES ${CMAKE_BINARY_DIR}/licensecc-config-version.cmake DESTINATION ${main_lib_dest})
 
+

--
Gitblit v1.9.1