2018-06-05 04:03:38 +03:00
|
|
|
if (NOT Qt5Widgets_FOUND)
|
|
|
|
feature_option(SYSTEMD "Install systemd service file (headless only)" OFF)
|
|
|
|
if (SYSTEMD)
|
|
|
|
if (NOT Systemd_SERVICES_INSTALL_DIR)
|
|
|
|
find_package(Systemd)
|
|
|
|
if (NOT Systemd_FOUND)
|
|
|
|
message(FATAL_ERROR "Could not locate systemd services install dir."
|
|
|
|
" Either pass -DSystemd_SERVICES_INSTALL_DIR=/path/to/systemd/services option or install systemd pkg-config")
|
|
|
|
endif(NOT Systemd_FOUND)
|
|
|
|
endif(NOT Systemd_SERVICES_INSTALL_DIR)
|
2015-11-06 21:03:18 +03:00
|
|
|
set(EXPAND_BINDIR ${CMAKE_INSTALL_FULL_BINDIR})
|
2017-05-18 16:51:50 +03: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
|
2018-06-05 04:03:38 +03:00
|
|
|
DESTINATION ${Systemd_SERVICES_INSTALL_DIR}
|
2015-11-06 21:03:18 +03:00
|
|
|
COMPONENT data)
|
2018-06-05 04:03:38 +03:00
|
|
|
endif(SYSTEMD)
|
|
|
|
endif()
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
if (Qt5Widgets_FOUND)
|
2015-11-06 21:03:18 +03:00
|
|
|
list(APPEND MAN_FILES ${qBittorrent_SOURCE_DIR}/doc/qbittorrent.1)
|
2018-06-05 04:03:38 +03:00
|
|
|
else (Qt5Widgets_FOUND)
|
2016-03-07 17:03:22 +03:00
|
|
|
list(APPEND MAN_FILES ${qBittorrent_SOURCE_DIR}/doc/qbittorrent-nox.1)
|
2018-06-05 04:03:38 +03:00
|
|
|
endif (Qt5Widgets_FOUND)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
|
|
|
install(FILES ${MAN_FILES}
|
|
|
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
|
|
|
COMPONENT doc)
|
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
if (Qt5Widgets_FOUND)
|
2017-04-12 18:15:27 +03:00
|
|
|
install(DIRECTORY menuicons/
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
|
|
|
|
FILES_MATCHING PATTERN "*.png")
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2019-01-05 05:01:32 +03:00
|
|
|
install(FILES org.qbittorrent.qBittorrent.desktop
|
2017-04-12 18:15:27 +03:00
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
|
|
|
|
COMPONENT data)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2019-01-05 05:01:32 +03:00
|
|
|
install(FILES org.qbittorrent.qBittorrent.appdata.xml
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/
|
2017-04-12 18:15:27 +03:00
|
|
|
COMPONENT data)
|
2017-07-05 14:16:57 +03:00
|
|
|
|
|
|
|
install(FILES
|
2017-09-26 02:17:32 +03:00
|
|
|
${qBittorrent_SOURCE_DIR}/src/icons/skin/qbittorrent-tray.svg
|
2017-07-05 14:16:57 +03: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 18:15:27 +03:00
|
|
|
endif()
|