Merge pull request 'Choice in documentation formats to build' (#2) from bmckwm/lmdbal:bmckwm-patch-1 into master
Some checks failed
Main LMDBAL workfow / Archlinux (push) Failing after 57s
Some checks failed
Main LMDBAL workfow / Archlinux (push) Failing after 57s
Reviewed-on: #2 Reviewed-by: Blue <blue@macaw.me>
This commit is contained in:
commit
3282524c8b
@ -12,7 +12,9 @@ cmake_policy(SET CMP0079 NEW)
|
|||||||
|
|
||||||
option(BUILD_STATIC "Builds library as static library" OFF)
|
option(BUILD_STATIC "Builds library as static library" OFF)
|
||||||
option(BUILD_TESTS "Builds tests" OFF)
|
option(BUILD_TESTS "Builds tests" OFF)
|
||||||
option(BUILD_DOC "Builds documentation" OFF)
|
option(BUILD_DOC_MAN "Builds man page documentation" OFF)
|
||||||
|
option(BUILD_DOC_HTML "Builds html documentation" OFF)
|
||||||
|
option(BUILD_DOC_XML "Builds xml documentation" OFF)
|
||||||
option(BUILD_DOXYGEN_AWESOME "Builds documentation alternative style" OFF)
|
option(BUILD_DOXYGEN_AWESOME "Builds documentation alternative style" OFF)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
@ -68,7 +70,7 @@ if (UNIX)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
if (BUILD_DOC)
|
if (BUILD_DOC_MAN OR BUILD_DOC_HTML OR BUILD_DOC_XML)
|
||||||
find_package(Doxygen)
|
find_package(Doxygen)
|
||||||
if (DOXYGEN_FOUND)
|
if (DOXYGEN_FOUND)
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
|
if (BUILD_DOC_HTML)
|
||||||
set(DOXYGEN_GENERATE_HTML YES)
|
set(DOXYGEN_GENERATE_HTML YES)
|
||||||
|
endif()
|
||||||
|
if (BUILD_DOC_MAN)
|
||||||
set(DOXYGEN_GENERATE_MAN YES)
|
set(DOXYGEN_GENERATE_MAN YES)
|
||||||
|
endif()
|
||||||
|
if (BUILD_DOC_XML)
|
||||||
set(DOXYGEN_GENERATE_XML YES)
|
set(DOXYGEN_GENERATE_XML YES)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (BUILD_DOXYGEN_AWESOME)
|
if (BUILD_DOXYGEN_AWESOME)
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
@ -36,12 +42,24 @@ doxygen_add_docs(
|
|||||||
ALL
|
ALL
|
||||||
COMMENT "Generate man and html pages"
|
COMMENT "Generate man and html pages"
|
||||||
)
|
)
|
||||||
|
if (BUILD_DOC_MAN)
|
||||||
install(DIRECTORY
|
install(DIRECTORY
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/man
|
${CMAKE_CURRENT_BINARY_DIR}/man
|
||||||
|
TYPE DOC
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
if (BUILD_DOC_HTML)
|
||||||
|
install(DIRECTORY
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/html
|
${CMAKE_CURRENT_BINARY_DIR}/html
|
||||||
|
TYPE DOC
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
if (BUILD_DOC_XML)
|
||||||
|
install(DIRECTORY
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/xml
|
${CMAKE_CURRENT_BINARY_DIR}/xml
|
||||||
TYPE DOC
|
TYPE DOC
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (BUILD_DOXYGEN_AWESOME)
|
if (BUILD_DOXYGEN_AWESOME)
|
||||||
add_dependencies(documentation doxygen-awesome-css)
|
add_dependencies(documentation doxygen-awesome-css)
|
||||||
|
Loading…
Reference in New Issue
Block a user