cmake: fix OSX bundle creation

This commit is contained in:
Eugene Shalygin 2017-03-20 19:04:06 +01:00
parent 5c0bf86405
commit b2ff058bc0
2 changed files with 3 additions and 2 deletions

View File

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

View File

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