2013-10-09 19:35:35 +00:00
|
|
|
|
2019-05-20 17:02:08 +00:00
|
|
|
# NOTE: The order of this list determines the order of items in the Guides
|
|
|
|
# (i.e. Pages) list in the generated documentation
|
|
|
|
set(GLFW_DOXYGEN_SOURCES
|
|
|
|
"include/GLFW/glfw3.h"
|
|
|
|
"include/GLFW/glfw3native.h"
|
|
|
|
"docs/main.dox"
|
|
|
|
"docs/news.dox"
|
|
|
|
"docs/quick.dox"
|
|
|
|
"docs/moving.dox"
|
|
|
|
"docs/compile.dox"
|
|
|
|
"docs/build.dox"
|
|
|
|
"docs/intro.dox"
|
|
|
|
"docs/context.dox"
|
|
|
|
"docs/monitor.dox"
|
|
|
|
"docs/window.dox"
|
|
|
|
"docs/input.dox"
|
|
|
|
"docs/vulkan.dox"
|
|
|
|
"docs/compat.dox"
|
|
|
|
"docs/internal.dox")
|
2016-02-24 09:23:06 +00:00
|
|
|
|
2019-05-20 17:02:08 +00:00
|
|
|
# Format the source list into a Doxyfile INPUT value that Doxygen can parse
|
|
|
|
foreach(path IN LISTS GLFW_DOXYGEN_SOURCES)
|
2021-08-25 10:17:45 +00:00
|
|
|
string(APPEND GLFW_DOXYGEN_INPUT " \\\n\"${GLFW_SOURCE_DIR}/${path}\"")
|
2016-02-24 09:23:06 +00:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
configure_file(Doxyfile.in Doxyfile @ONLY)
|
2017-11-17 03:34:18 +00:00
|
|
|
|
2016-02-24 09:23:06 +00:00
|
|
|
add_custom_target(docs ALL "${DOXYGEN_EXECUTABLE}"
|
|
|
|
WORKING_DIRECTORY "${GLFW_BINARY_DIR}/docs"
|
2013-10-09 19:35:35 +00:00
|
|
|
COMMENT "Generating HTML documentation" VERBATIM)
|
|
|
|
|
2020-02-10 16:44:34 +00:00
|
|
|
set_target_properties(docs PROPERTIES FOLDER "GLFW3")
|
|
|
|
|