|
|
|
@ -31,9 +31,14 @@ foreach(file IN LISTS source_files) |
|
|
|
|
string(APPEND GLFW_DOXYGEN_INPUT " \\\n\"${CMAKE_CURRENT_SOURCE_DIR}/${file}\"") |
|
|
|
|
endforeach() |
|
|
|
|
|
|
|
|
|
configure_file(Doxyfile.in Doxyfile @ONLY) |
|
|
|
|
|
|
|
|
|
add_custom_command(OUTPUT "html/index.html" |
|
|
|
|
set(DOXYGEN_SKIP_DOT TRUE) |
|
|
|
|
find_package(Doxygen) |
|
|
|
|
|
|
|
|
|
if (NOT DOXYGEN_FOUND OR DOXYGEN_VERSION VERSION_LESS "1.9.8") |
|
|
|
|
message(STATUS "Documentation generation requires Doxygen 1.9.8 or later") |
|
|
|
|
else() |
|
|
|
|
configure_file(Doxyfile.in Doxyfile @ONLY) |
|
|
|
|
add_custom_command(OUTPUT "html/index.html" |
|
|
|
|
COMMAND "${DOXYGEN_EXECUTABLE}" |
|
|
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" |
|
|
|
|
MAIN_DEPENDENCY Doxyfile |
|
|
|
@ -41,6 +46,12 @@ add_custom_command(OUTPUT "html/index.html" |
|
|
|
|
COMMENT "Generating HTML documentation" |
|
|
|
|
VERBATIM) |
|
|
|
|
|
|
|
|
|
add_custom_target(docs ALL SOURCES "html/index.html") |
|
|
|
|
set_target_properties(docs PROPERTIES FOLDER "GLFW3") |
|
|
|
|
add_custom_target(docs ALL SOURCES "html/index.html") |
|
|
|
|
set_target_properties(docs PROPERTIES FOLDER "GLFW3") |
|
|
|
|
|
|
|
|
|
if (GLFW_INSTALL) |
|
|
|
|
install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html" |
|
|
|
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|