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
This commit is contained in:
parent
de6b4be8b3
commit
6ed336bf94
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue