From db877ba121ff87a4e029daf8555d85dfef45993a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 9 Feb 2015 01:51:14 +0100 Subject: NOISSUE move everything. --- application/install_prereqs.cmake.in | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 application/install_prereqs.cmake.in (limited to 'application/install_prereqs.cmake.in') diff --git a/application/install_prereqs.cmake.in b/application/install_prereqs.cmake.in new file mode 100644 index 00000000..b8fa3177 --- /dev/null +++ b/application/install_prereqs.cmake.in @@ -0,0 +1,24 @@ +set(CMAKE_MODULE_PATH "@CMAKE_MODULE_PATH@") + +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) + elseif(resolved_file MATCHES "^/usr/lib(.+)?/libxcb") + message("resolving ${resolved_file} as other") + set(${type_var} other PARENT_SCOPE) + elseif(resolved_file MATCHES "^/usr/lib(.+)?/libicu") + 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@") + -- cgit v1.2.3