deskflow/doc/CMakeLists.txt

25 lines
728 B
CMake
Raw Normal View History

# SPDX-FileCopyrightText: 2019 - 2025 Chris Rizzitello <sithlord48@gmail.com>
2024-10-14 05:40:18 +00:00
# SPDX-License-Identifier: MIT
find_package(Doxygen QUIET)
option(BUILD_USER_DOCS "Build and install user documentation" ${DOXYGEN_FOUND})
2025-06-09 00:58:31 +00:00
option(BUILD_DEV_DOCS "Build and install developer documentation" OFF)
2024-10-14 05:40:18 +00:00
if (DOXYGEN_FOUND)
# Generic Doxygen options
2024-10-14 05:40:18 +00:00
set(DOXYGEN_EXTRACT_ALL YES)
set(DOXYGEN_EXTRACT_STATIC YES)
2024-10-14 05:40:18 +00:00
set(DOXYGEN_STRIP_FROM_PATH ${CMAKE_SOURCE_DIR})
set(DOXYGEN_QUIET YES)
set(DOXYGEN_PROJECT_NAME ${CMAKE_PROJECT_PROPER_NAME})
2024-10-14 05:40:18 +00:00
if (BUILD_USER_DOCS)
add_subdirectory(user)
endif()
2025-06-09 00:58:31 +00:00
if (BUILD_DEV_DOCS)
add_subdirectory(dev)
endif()
else()
message(STATUS "Doxygen not found, skipping docs build")
2024-10-14 05:40:18 +00:00
endif()