Move fixup_bundle CMake stuff into a separate file
This commit is contained in:
parent
aa61bbe9e4
commit
f0104edc3d
@ -576,22 +576,11 @@ FILE(WRITE \"\${CMAKE_INSTALL_PREFIX}/${QTCONF_DEST_DIR}/qt.conf\" \"\")
|
|||||||
COMPONENT Runtime
|
COMPONENT Runtime
|
||||||
)
|
)
|
||||||
|
|
||||||
|
CONFIGURE_FILE(
|
||||||
INSTALL(
|
"${CMAKE_CURRENT_SOURCE_DIR}/install_prereqs.cmake.in"
|
||||||
CODE "
|
"${CMAKE_CURRENT_BINARY_DIR}/install_prereqs.cmake"
|
||||||
FILE(GLOB_RECURSE QTPLUGINS \"\${CMAKE_INSTALL_PREFIX}/${PLUGIN_DEST_DIR}/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
|
@ONLY)
|
||||||
function(gp_resolved_file_type_override resolved_file type_var)
|
INSTALL(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/install_prereqs.cmake" COMPONENT Runtime)
|
||||||
if(resolved_file MATCHES \"^/usr/lib/libQt\")
|
|
||||||
message(\"resolving \${resolved_file} as other\")
|
|
||||||
set(\${type_var} other PARENT_SCOPE)
|
|
||||||
endif()
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
include(BundleUtilities)
|
|
||||||
fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
|
|
||||||
"
|
|
||||||
COMPONENT Runtime
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
16
install_prereqs.cmake.in
Normal file
16
install_prereqs.cmake.in
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FILE(GLOB_RECURSE QTPLUGINS "${CMAKE_INSTALL_PREFIX}/@PLUGIN_DEST_DIR@/*@CMAKE_SHARED_LIBRARY_SUFFIX@")
|
||||||
|
function(gp_resolved_file_type_override resolved_file type_var)
|
||||||
|
if(resolved_file MATCHES "^/usr/lib/libQt")
|
||||||
|
message("resolving ${resolved_file} as other")
|
||||||
|
set(${type_var} other PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
set(gp_tool "@CMAKE_GP_TOOL@")
|
||||||
|
set(gp_cmd_paths ${gp_cmd_paths}
|
||||||
|
"@CMAKE_GP_CMD_PATHS@"
|
||||||
|
)
|
||||||
|
|
||||||
|
include(BundleUtilities)
|
||||||
|
fixup_bundle("@APPS@" "${QTPLUGINS}" "@DIRS@")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user