CMakeLists.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # NOTE: The order of this list determines the order of items in the Guides
  2. # (i.e. Pages) list in the generated documentation
  3. set(GLFW_DOXYGEN_SOURCES
  4. "include/GLFW/glfw3.h"
  5. "include/GLFW/glfw3native.h"
  6. "docs/main.dox"
  7. "docs/news.dox"
  8. "docs/quick.dox"
  9. "docs/moving.dox"
  10. "docs/compile.dox"
  11. "docs/build.dox"
  12. "docs/intro.dox"
  13. "docs/context.dox"
  14. "docs/monitor.dox"
  15. "docs/window.dox"
  16. "docs/input.dox"
  17. "docs/vulkan.dox"
  18. "docs/compat.dox"
  19. "docs/internal.dox")
  20. # Format the source list into a Doxyfile INPUT value that Doxygen can parse
  21. foreach(path IN LISTS GLFW_DOXYGEN_SOURCES)
  22. set(GLFW_DOXYGEN_INPUT "${GLFW_DOXYGEN_INPUT} \\\n\"${GLFW_SOURCE_DIR}/${path}\"")
  23. endforeach()
  24. configure_file(Doxyfile.in Doxyfile @ONLY)
  25. add_custom_target(docs ALL "${DOXYGEN_EXECUTABLE}"
  26. WORKING_DIRECTORY "${GLFW_BINARY_DIR}/docs"
  27. COMMENT "Generating HTML documentation" VERBATIM)
  28. set_target_properties(docs PROPERTIES FOLDER "GLFW3")