File: CMakeLists.txt

package info (click to toggle)
morph-browser 1.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,004 kB
  • sloc: cpp: 11,940; javascript: 570; xml: 102; makefile: 43
file content (13 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
project(morph-web-doc)

find_program(QDOC_EXECUTABLE qdoc)
if(QDOC_EXECUTABLE STREQUAL "QDOC_EXECUTABLE-NOTFOUND")
    message(WARNING "qdoc not found, documentation cannot be built")
else()
    add_custom_target(doc ALL
                      COMMAND ${QDOC_EXECUTABLE} -qt5
                      -outputdir ${CMAKE_CURRENT_BINARY_DIR}/html
                    ${CMAKE_CURRENT_SOURCE_DIR}/morph-web.qdocconf)
    install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
    DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/morph-web)
endif()