2 if (NOT SYSTEMD_SERVICES_INSTALL_DIR)
7 "Could not locate systemd services install dir."
8 " Either pass the -DSYSTEMD_SERVICES_INSTALL_DIR=/path/to/systemd/services option"
9 " or install systemd pkg-config"
13 set(EXPAND_BINDIR ${CMAKE_INSTALL_FULL_BINDIR})
14 configure_file(systemd/qbittorrent-nox@.service.in ${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service @ONLY)
15 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service"
16 DESTINATION ${SYSTEMD_SERVICES_INSTALL_DIR}
26 foreach(manPageLanguage ${manPageLanguages})
27 install(FILES ${PROJECT_SOURCE_DIR}/doc/${manPageLanguage}/$<IF:$<BOOL:${GUI}>,qbittorrent.1,qbittorrent-nox.1>
28 # English man pages are installed into ${CMAKE_INSTALL_MANDIR}/man1, while man pages
29 # in other languages are installed into ${CMAKE_INSTALL_MANDIR}/${manPageLanguage}/man1.
30 DESTINATION ${CMAKE_INSTALL_MANDIR}/$<$<NOT:$<STREQUAL:${manPageLanguage},en>>:${manPageLanguage}/>man1
36 install(FILES org.qbittorrent.qBittorrent.desktop
37 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
41 install(FILES org.qbittorrent.qBittorrent.metainfo.xml
42 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/
46 install(DIRECTORY menuicons/
47 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
52 ${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray.svg
53 ${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray-dark.svg
54 ${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray-light.svg
55 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/status