2015-11-07 02:03:18 +08:00
|
|
|
if (SYSTEMD)
|
|
|
|
find_package(Systemd)
|
|
|
|
if (SYSTEMD_FOUND)
|
|
|
|
set(EXPAND_BINDIR ${CMAKE_INSTALL_FULL_BINDIR})
|
2017-05-18 21:51:50 +08:00
|
|
|
configure_file(systemd/qbittorrent-nox@.service.in ${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service @ONLY)
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service
|
2016-03-06 02:23:43 +08:00
|
|
|
DESTINATION ${SYSTEMD_SERVICES_INSTALL_DIR}
|
2015-11-07 02:03:18 +08:00
|
|
|
COMPONENT data)
|
|
|
|
endif(SYSTEMD_FOUND)
|
|
|
|
endif(SYSTEMD)
|
|
|
|
|
|
|
|
|
|
|
|
if (GUI)
|
|
|
|
list(APPEND MAN_FILES ${qBittorrent_SOURCE_DIR}/doc/qbittorrent.1)
|
|
|
|
else (GUI)
|
2016-03-07 22:03:22 +08:00
|
|
|
list(APPEND MAN_FILES ${qBittorrent_SOURCE_DIR}/doc/qbittorrent-nox.1)
|
2015-11-07 02:03:18 +08:00
|
|
|
endif (GUI)
|
|
|
|
|
|
|
|
install(FILES ${MAN_FILES}
|
|
|
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
|
|
|
COMPONENT doc)
|
|
|
|
|
2017-04-12 23:15:27 +08:00
|
|
|
if (GUI)
|
|
|
|
install(DIRECTORY menuicons/
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
|
|
|
|
FILES_MATCHING PATTERN "*.png")
|
2015-11-07 02:03:18 +08:00
|
|
|
|
2017-04-12 23:15:27 +08:00
|
|
|
install(FILES ${qBittorrent_SOURCE_DIR}/src/icons/qbittorrent.png
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps/
|
|
|
|
COMPONENT data)
|
2015-11-07 02:03:18 +08:00
|
|
|
|
2017-04-12 23:15:27 +08:00
|
|
|
install(FILES ${qBittorrent_SOURCE_DIR}/src/icons/qbittorrent.desktop
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
|
|
|
|
COMPONENT data)
|
2015-11-07 02:03:18 +08:00
|
|
|
|
2017-04-12 23:15:27 +08:00
|
|
|
install(FILES qbittorrent.appdata.xml
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata/
|
|
|
|
COMPONENT data)
|
2017-07-05 19:16:57 +08:00
|
|
|
|
|
|
|
install(FILES
|
2017-09-26 07:17:32 +08:00
|
|
|
${qBittorrent_SOURCE_DIR}/src/icons/skin/qbittorrent-tray.svg
|
2017-07-05 19:16:57 +08:00
|
|
|
${qBittorrent_SOURCE_DIR}/src/icons/skin/qbittorrent-tray-dark.svg
|
|
|
|
${qBittorrent_SOURCE_DIR}/src/icons/skin/qbittorrent-tray-light.svg
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/status
|
|
|
|
COMPONENT data)
|
2017-04-12 23:15:27 +08:00
|
|
|
endif()
|