mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03:00
c614c66535
Install platform and svg plugins into bundle. Update dependencies in Travis.
21 lines
563 B
CMake
21 lines
563 B
CMake
set(BU_CHMOD_BUNDLE_ITEMS ON)
|
|
include(DeployQt5)
|
|
|
|
set(plugins "")
|
|
|
|
get_property(svgIconPluginLocation TARGET Qt5::QSvgIconPlugin
|
|
PROPERTY LOCATION_RELEASE)
|
|
list(APPEND plugins "${svgIconPluginLocation}")
|
|
get_property(svgPluginLocation TARGET Qt5::QSvgPlugin
|
|
PROPERTY LOCATION_RELEASE)
|
|
list(APPEND plugins "${svgPluginLocation}")
|
|
|
|
set(sfx "")
|
|
if(APPLE)
|
|
set(sfx ".app")
|
|
elseif(WIN32)
|
|
set(sfx "${CMAKE_EXECUTABLE_SUFFIX}")
|
|
endif()
|
|
|
|
get_target_property(exe qBittorrent OUTPUT_NAME)
|
|
install_qt5_executable("${exe}${sfx}" "${plugins}" "" "" "")
|