scsl/cmake/docs.cmake

19 lines
438 B
CMake
Raw Normal View History

2023-10-15 01:38:01 +00:00
# Doxygen support for scsl.
2023-10-10 02:59:21 +00:00
find_package(Doxygen)
if (${DOXYGEN_FOUND})
set(DOXYGEN_GENERATE_MAN YES)
set(DOXYGEN_GENERATE_LATEX YES)
set(DOXYGEN_EXTRACT_ALL YES)
2023-10-16 00:09:31 +00:00
message(STATUS "Doxygen found, building docs.")
2023-10-10 02:59:21 +00:00
2023-10-15 01:38:01 +00:00
doxygen_add_docs(scsl_docs
2023-10-19 07:37:56 +00:00
${HEADER_FILES}
2023-10-19 18:16:13 +00:00
ALL
USE_STAMP_FILE)
2023-10-15 01:38:01 +00:00
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/scsl)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man DESTINATION share)
2023-10-10 02:59:21 +00:00
endif ()