doc: correct target for documents
This commit is contained in:
parent
fb686ede21
commit
232e8fafee
2 changed files with 3 additions and 5 deletions
|
|
@ -87,9 +87,7 @@ configure_build()
|
||||||
configure_libs()
|
configure_libs()
|
||||||
configure_packaging()
|
configure_packaging()
|
||||||
|
|
||||||
option(BUILD_DOCS "Build documentation" ON)
|
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
post_config_all()
|
post_config_all()
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
find_package(Doxygen QUIET)
|
find_package(Doxygen QUIET)
|
||||||
option(DOCS "Build and Install Documents" ${DOXYGEN_FOUND})
|
option(BUILD_DOCS "Build and Install Documents" ${DOXYGEN_FOUND})
|
||||||
|
|
||||||
if(DOCS)
|
if(BUILD_DOCS)
|
||||||
set(DOXYGEN_EXTRACT_ALL YES)
|
set(DOXYGEN_EXTRACT_ALL YES)
|
||||||
set(DOXYGEN_STRIP_FROM_PATH ${CMAKE_SOURCE_DIR})
|
set(DOXYGEN_STRIP_FROM_PATH ${CMAKE_SOURCE_DIR})
|
||||||
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
|
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE mainpage.md)
|
||||||
|
|
@ -15,7 +15,7 @@ if(DOCS)
|
||||||
doxygen_add_docs(user-docs ${CMAKE_SOURCE_DIR}/doc COMMENT "Generating User Documentation" ALL)
|
doxygen_add_docs(user-docs ${CMAKE_SOURCE_DIR}/doc COMMENT "Generating User Documentation" ALL)
|
||||||
|
|
||||||
# HACK Only these will show in your IDE
|
# HACK Only these will show in your IDE
|
||||||
target_sources(docs PRIVATE
|
target_sources(user-docs PRIVATE
|
||||||
mainpage.md
|
mainpage.md
|
||||||
configuration.md
|
configuration.md
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue