summaryrefslogtreecommitdiffstats
path: root/application/install_prereqs.cmake.in
blob: 11c8bbc82b1791771209f775df967a3ced0a33ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)
	elseif(resolved_file MATCHES "^/usr/lib(.+)?/libpng")
		message("resolving ${resolved_file} as other")
		set(${type_var} other PARENT_SCOPE)
	elseif((resolved_file MATCHES "^/usr/lib(.+)?/libstdc\\+\\+") AND (UNIX AND NOT APPLE))
		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@")