From 025c09a83b575871c4efbac3ecf080c472951bdd Mon Sep 17 00:00:00 2001 From: Gabriele Contini <gcontini@users.noreply.github.com> Date: 周六, 01 2月 2020 00:11:31 +0800 Subject: [PATCH] Deploy documentation to gh-pages branch (#74) --- CMakeLists.txt | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7543e6..bbe4814 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,7 +142,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,18 @@ 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/*") + 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") +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 +174,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