-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
28 lines (24 loc) · 1.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -------------------------------------------
# Copyright (c) 2021 - 2024 Prashant K. Jha
# -------------------------------------------
# PeriDEM https://github.com/prashjha/PeriDEM
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE)
# source - https://vicrucann.github.io/tutorials/quick-cmake-doxygen/
# set input and output files
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/input-conf.doxy.in)
set(DOXYGEN_OUT ${CMAKE_CURRENT_SOURCE_DIR}/doxy/conf.doxy.in)
# request to configure the file
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
if (${Enable_CMAKE_Debug_Build})
message(STATUS "Doxygen build started")
message(STATUS "DOXYGEN_IN = ${DOXYGEN_IN}")
message(STATUS "DOXYGEN_OUT = ${DOXYGEN_OUT}")
endif()
# note the option ALL which allows to build the docs together with the application
add_custom_target(doc ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM )