cmake: fix OSX bundle creation

This commit is contained in:
Eugene Shalygin 2017-03-20 19:04:06 +01:00 committed by sledgehammer999
parent 3497c5307c
commit db29a61fbf
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
2 changed files with 3 additions and 2 deletions

View file

@ -1,2 +1,3 @@
set(BU_CHMOD_BUNDLE_ITEMS ON)
include(BundleUtilities) include(BundleUtilities)
fixup_bundle("$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/qbittorrent.app" "" "") fixup_bundle("$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/qbittorrent.app" "" "")

View file

@ -180,6 +180,6 @@ install(TARGETS ${QBT_TARGET_NAME}
BUNDLE DESTINATION . BUNDLE DESTINATION .
COMPONENT runtime) COMPONENT runtime)
if (APPLE) if (APPLE AND GUI)
install(SCRIPT ${OSX_RES_SRC_DIR}/bundle.cmake) install(SCRIPT ${OSX_RES_SRC_DIR}/bundle.cmake)
endif (APPLE) endif (APPLE AND GUI)