mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 11:49:01 +03:00
f457069881
The icon is copied from icons/qbittorrent-tray.svg as there is no way to install a file and rename it in qmake.
55 lines
1.7 KiB
CMake
55 lines
1.7 KiB
CMake
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
|
|
)
|
|
endif()
|
|
|
|
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()
|
|
|
|
install(FILES ${MAN_FILES}
|
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
|
|
COMPONENT doc
|
|
)
|
|
|
|
if (GUI)
|
|
install(FILES org.qbittorrent.qBittorrent.desktop
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/
|
|
COMPONENT data
|
|
)
|
|
|
|
install(FILES org.qbittorrent.qBittorrent.appdata.xml
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/
|
|
COMPONENT data
|
|
)
|
|
|
|
install(DIRECTORY menuicons/
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor
|
|
COMPONENT data
|
|
)
|
|
|
|
install(FILES
|
|
${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
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/status
|
|
COMPONENT data
|
|
)
|
|
endif()
|