From 6ed336bf94c6497a1f42cef04450b118fffb9a74 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 5 Aug 2017 18:33:57 +0200 Subject: [PATCH] Allow specifying install destination for bundles * Install destination for bundles can be set via cache variable BUNDLE_INSTALL_DESTINATION * Default is the dir used for regular applications --- cmake/modules/AppTarget.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/AppTarget.cmake b/cmake/modules/AppTarget.cmake index ea3c47b..ba15ee5 100644 --- a/cmake/modules/AppTarget.cmake +++ b/cmake/modules/AppTarget.cmake @@ -66,9 +66,12 @@ set_target_properties(${TARGET_PREFIX}${META_PROJECT_NAME}${TARGET_SUFFIX} PROPE ) if(NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS) + set(BUNDLE_INSTALL_DESTINATION bin CACHE STRING "specifies the install destination for bundles") + # add install target for binary install(TARGETS ${TARGET_PREFIX}${META_PROJECT_NAME}${TARGET_SUFFIX} RUNTIME DESTINATION bin + BUNDLE DESTINATION "${BUNDLE_INSTALL_DESTINATION}" COMPONENT binary ) if(NOT TARGET install-binary)