1 2set(glfw_DOCS_SOURCES 3 "${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h" 4 "${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h" 5 "${GLFW_SOURCE_DIR}/docs/main.dox" 6 "${GLFW_SOURCE_DIR}/docs/news.dox" 7 "${GLFW_SOURCE_DIR}/docs/moving.dox" 8 "${GLFW_SOURCE_DIR}/docs/quick.dox" 9 "${GLFW_SOURCE_DIR}/docs/compile.dox" 10 "${GLFW_SOURCE_DIR}/docs/build.dox" 11 "${GLFW_SOURCE_DIR}/docs/intro.dox" 12 "${GLFW_SOURCE_DIR}/docs/context.dox" 13 "${GLFW_SOURCE_DIR}/docs/monitor.dox" 14 "${GLFW_SOURCE_DIR}/docs/window.dox" 15 "${GLFW_SOURCE_DIR}/docs/input.dox" 16 "${GLFW_SOURCE_DIR}/docs/vulkan.dox" 17 "${GLFW_SOURCE_DIR}/docs/compat.dox") 18 19if (GLFW_DOCUMENT_INTERNALS) 20 list(APPEND glfw_DOCS_SOURCES "${GLFW_SOURCE_DIR}/src/internal.h") 21endif() 22 23foreach(arg ${glfw_DOCS_SOURCES}) 24 set(GLFW_DOCS_SOURCES "${GLFW_DOCS_SOURCES} ${arg}") 25endforeach() 26 27configure_file(Doxyfile.in Doxyfile @ONLY) 28 29add_custom_target(docs ALL "${DOXYGEN_EXECUTABLE}" 30 WORKING_DIRECTORY "${GLFW_BINARY_DIR}/docs" 31 COMMENT "Generating HTML documentation" VERBATIM) 32 33