Debian Codegraph @

src/doc/CMakeLists.txt

raw
1 CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/src/pic/qterm.png ${CMAKE_CURRENT_BINARY_DIR}/qterm.png COPYONLY)
2 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/qterm.qhp.in ${CMAKE_CURRENT_BINARY_DIR}/qterm.qhp)
3 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/index.html.in ${CMAKE_CURRENT_BINARY_DIR}/index.html)
4 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Script.html ${CMAKE_CURRENT_BINARY_DIR}/Script.html COPYONLY)
5 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/about.txt ${CMAKE_CURRENT_BINARY_DIR}/about.txt COPYONLY)
6 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/doc.css ${CMAKE_CURRENT_BINARY_DIR}/doc.css COPYONLY)
7 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/qterm.qhcp ${CMAKE_CURRENT_BINARY_DIR}/qterm.qhcp COPYONLY)
8
9 if (QT_VERSION VERSION_LESS 6)
10 set (HELPGENERATOR qcollectiongenerator)
11 else ()
12 set (HELPGENERATOR qhelpgenerator)
13 endif ()
14
15 ADD_CUSTOM_COMMAND(
16 OUTPUT qterm.qhc
17 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/qterm.qhcp
18 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/qterm.qhp
19 COMMAND Qt${QT_VERSION_MAJOR}::${HELPGENERATOR}
20 ARGS qterm.qhcp
21 -o qterm.qhc
22 COMMENT "Compiling Qt help collection project qterm.qhcp"
23 )
24
25 ADD_CUSTOM_TARGET(help_target
26 DEPENDS qterm.qhc)
27
28 if (NOT APPLE)
29 INSTALL(
30 FILES ${CMAKE_CURRENT_BINARY_DIR}/qterm.qhc
31 DESTINATION share/qterm/doc
32 )
33 endif ()
34