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}
22 list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent.1)
24 list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent-nox.1)
27 install(FILES ${MAN_FILES}
28 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
33 install(FILES org.qbittorrent.qBittorrent.desktop
34 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
38 install(FILES org.qbittorrent.qBittorrent.metainfo.xml
39 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/
43 install(DIRECTORY menuicons/
44 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
49 ${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray.svg
50 ${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray-dark.svg
51 ${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray-light.svg
52 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/status