2013-10-09 15:35:35 -04:00
|
|
|
|
2019-05-20 13:02:08 -04:00
|
|
|
# NOTE: The order of this list determines the order of items in the Guides
|
|
|
|
# (i.e. Pages) list in the generated documentation
|
2021-08-25 07:12:14 -04:00
|
|
|
set(source_files
|
|
|
|
main.dox
|
|
|
|
news.dox
|
|
|
|
quick.dox
|
|
|
|
moving.dox
|
|
|
|
compile.dox
|
|
|
|
build.dox
|
|
|
|
intro.dox
|
|
|
|
context.dox
|
|
|
|
monitor.dox
|
|
|
|
window.dox
|
|
|
|
input.dox
|
|
|
|
vulkan.dox
|
|
|
|
compat.dox
|
|
|
|
internal.dox)
|
|
|
|
|
2021-08-26 11:41:20 -04:00
|
|
|
set(extra_files DoxygenLayout.xml header.html footer.html extra.css spaces.svg)
|
2021-08-25 07:12:14 -04:00
|
|
|
|
|
|
|
set(header_paths
|
|
|
|
"${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h"
|
|
|
|
"${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h")
|
2016-02-24 04:23:06 -05:00
|
|
|
|
2019-05-20 13:02:08 -04:00
|
|
|
# Format the source list into a Doxyfile INPUT value that Doxygen can parse
|
2021-08-25 07:12:14 -04:00
|
|
|
foreach(path IN LISTS header_paths)
|
|
|
|
string(APPEND GLFW_DOXYGEN_INPUT " \\\n\"${path}\"")
|
|
|
|
endforeach()
|
|
|
|
foreach(file IN LISTS source_files)
|
|
|
|
string(APPEND GLFW_DOXYGEN_INPUT " \\\n\"${CMAKE_CURRENT_SOURCE_DIR}/${file}\"")
|
2016-02-24 04:23:06 -05:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
configure_file(Doxyfile.in Doxyfile @ONLY)
|
2017-11-16 22:34:18 -05:00
|
|
|
|
2021-08-25 07:12:14 -04:00
|
|
|
add_custom_command(OUTPUT "html/index.html"
|
|
|
|
COMMAND "${DOXYGEN_EXECUTABLE}"
|
|
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
|
|
|
MAIN_DEPENDENCY Doxyfile
|
|
|
|
DEPENDS ${header_paths} ${source_files} ${extra_files}
|
|
|
|
COMMENT "Generating HTML documentation"
|
|
|
|
VERBATIM)
|
2013-10-09 15:35:35 -04:00
|
|
|
|
2021-08-25 07:12:14 -04:00
|
|
|
add_custom_target(docs ALL SOURCES "html/index.html")
|
2020-02-10 11:44:34 -05:00
|
|
|
set_target_properties(docs PROPERTIES FOLDER "GLFW3")
|
|
|
|
|