This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
pacciani/cmake/Doxycelli.cmake

23 lines
564 B
CMake
Raw Normal View History

# Copyright 2019 the Monicelli project authors. All rights reserved.
# Use of this source code is governed by a GPLv3 license, see LICENSE.txt.
find_package(Doxygen)
if (DOXYGEN_FOUND)
2023-04-18 22:55:48 +02:00
set(PACCIANI_DOXYGEN_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
2023-04-18 22:55:48 +02:00
${PACCIANI_DOXYGEN_CONFIG}
@ONLY
)
add_custom_target(doc
2023-04-18 22:55:48 +02:00
DEPENDS ${PACCIANI_DOXYGEN_CONFIG}
COMMAND ${DOXYGEN_EXECUTABLE} ${PACCIANI_DOXYGEN_CONFIG}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
VERBATIM
)
endif()