2020-05-03 21:28:07 +03:00
|
|
|
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 the -DSYSTEMD_SERVICES_INSTALL_DIR=/path/to/systemd/services option"
|
|
|
|
" or install systemd pkg-config"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
set(EXPAND_BINDIR ${CMAKE_INSTALL_FULL_BINDIR})
|
|
|
|
configure_file(systemd/qbittorrent-nox@.service.in ${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service @ONLY)
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service"
|
|
|
|
DESTINATION ${SYSTEMD_SERVICES_INSTALL_DIR}
|
|
|
|
COMPONENT data
|
|
|
|
)
|
2018-06-05 04:03:38 +03:00
|
|
|
endif()
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2020-05-03 21:28:07 +03:00
|
|
|
if (GUI)
|
|
|
|
list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent.1)
|
|
|
|
else()
|
|
|
|
list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent-nox.1)
|
|
|
|
endif()
|
2015-11-06 21:03:18 +03:00
|
|
|
|
|
|
|
install(FILES ${MAN_FILES}
|
2020-05-03 21:28:07 +03:00
|
|
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
|
|
|
COMPONENT doc
|
|
|
|
)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2020-05-03 21:28:07 +03:00
|
|
|
if (GUI)
|
2019-01-05 05:01:32 +03:00
|
|
|
install(FILES org.qbittorrent.qBittorrent.desktop
|
2020-05-03 21:28:07 +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
|
2020-05-03 21:28:07 +03:00
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/
|
|
|
|
COMPONENT data
|
|
|
|
)
|
2017-07-05 14:16:57 +03:00
|
|
|
|
2021-04-10 11:24:10 +03:00
|
|
|
install(DIRECTORY menuicons/
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
|
|
|
|
COMPONENT data
|
|
|
|
)
|
|
|
|
|
2017-07-05 14:16:57 +03:00
|
|
|
install(FILES
|
2020-05-03 21:28:07 +03:00
|
|
|
${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray.svg
|
|
|
|
${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray-dark.svg
|
|
|
|
${PROJECT_SOURCE_DIR}/src/icons/qbittorrent-tray-light.svg
|
2017-07-05 14:16:57 +03:00
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/status
|
2020-05-03 21:28:07 +03:00
|
|
|
COMPONENT data
|
|
|
|
)
|
2017-04-12 18:15:27 +03:00
|
|
|
endif()
|