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/MonicelliDoc.cmake
Stefano Sanfilippo 68dee1250d Port the build scripts to CMake 3.5, refactor them.
* Use the official LLVMConfig rather than our FindLLVM.
* Add target rule for Ragel.
* Remove useless dependencies by only compiling for the native target.
* Use target rules.
2019-06-24 11:02:46 +02:00

23 lines
568 B
CMake

# 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)
set(MONICELLI_DOXYGEN_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${MONICELLI_DOXYGEN_CONFIG}
@ONLY
)
add_custom_target(doc
DEPENDS ${MONICELLI_DOXYGEN_CONFIG}
COMMAND ${DOXYGEN_EXECUTABLE} ${MONICELLI_DOXYGEN_CONFIG}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
VERBATIM
)
endif()