6find_program(DOT_EXECUTABLE dot /usr/bin)
7find_program(DOXYQML_EXECUTABLE doxyqml /usr/bin)
8if (NOT DOXYGEN_FOUND OR NOT DOT_EXECUTABLE OR NOT DOXYQML_EXECUTABLE)
9 message(WARNING "Cannot generate documentation: doxygen, doxyqml and/or graphviz not found")
11 file(GLOB_RECURSE DOC_FILES
12 ${CMAKE_BINARY_DIR}/include/*.h
13 ${CMAKE_SOURCE_DIR}/include/*.h
14 ${CMAKE_SOURCE_DIR}/src/*.h
15 ${CMAKE_SOURCE_DIR}/src/*.cpp
16 ${CMAKE_SOURCE_DIR}/plugins/*.h
17 ${CMAKE_SOURCE_DIR}/plugins/*.cpp
18 ${CMAKE_SOURCE_DIR}/plugins/*.qml
19 ${CMAKE_SOURCE_DIR}/plugins/*.js
20 ${CMAKE_SOURCE_DIR}/qml/*.qml
21 ${CMAKE_SOURCE_DIR}/qml/*.js
22 ${CMAKE_SOURCE_DIR}/tests/autopilot/*.py
23 ${CMAKE_SOURCE_DIR}/tests/utils/*.h
24 ${CMAKE_SOURCE_DIR}/tests/utils/*.cpp
25 ${CMAKE_SOURCE_DIR}/tests/utils/*.qml
26 ${CMAKE_SOURCE_DIR}/tests/utils/*.js
27 ${CMAKE_SOURCE_DIR}/tests/autopilot/unity8/shell/emulators/*.py
28 ${CMAKE_SOURCE_DIR}/tests/autopilot/unity8/process_helpers.py)
30 string(REPLACE ";" " " DOXYGEN_INPUT "${DOC_FILES}")
32 configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_BINARY_DIR}/doc/Doxyfile @ONLY IMMEDIATE)
33 add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html
34 COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doc/Doxyfile
35 DEPENDS ${PROJECT_BINARY_DIR}/doc/Doxyfile ${DOC_FILES})
36 add_custom_target(doc DEPENDS ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}/index.html)
37 install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/${PROJECT_NAME}
38 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list