scsl/cmake/docs.cmake

19 lines
482 B
CMake
Raw Permalink 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
${HEADER_FILES} ${SOURCE_FILES}
USE_STAMP_FILE)
2023-10-15 01:38:01 +00:00
add_dependencies(scsl scsl_docs)
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 ()