summaryrefslogtreecommitdiffstats
path: root/install_prereqs.cmake.in
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-12-10 13:37:15 -0600
committerAndrew <forkk@forkk.net>2013-12-10 13:37:15 -0600
commitf0104edc3daded9aa09e5a1b6dbfe2cc39d495dd (patch)
tree2090aa1c0fc49904d3cf32edd1f0b73d8a952f20 /install_prereqs.cmake.in
parentaa61bbe9e414648399aff2802df5b587dee1a084 (diff)
downloadMultiMC-f0104edc3daded9aa09e5a1b6dbfe2cc39d495dd.tar
MultiMC-f0104edc3daded9aa09e5a1b6dbfe2cc39d495dd.tar.gz
MultiMC-f0104edc3daded9aa09e5a1b6dbfe2cc39d495dd.tar.lz
MultiMC-f0104edc3daded9aa09e5a1b6dbfe2cc39d495dd.tar.xz
MultiMC-f0104edc3daded9aa09e5a1b6dbfe2cc39d495dd.zip
Move fixup_bundle CMake stuff into a separate file
Diffstat (limited to 'install_prereqs.cmake.in')
-rw-r--r--install_prereqs.cmake.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/install_prereqs.cmake.in b/install_prereqs.cmake.in
new file mode 100644
index 00000000..7565d6cb
--- /dev/null
+++ b/install_prereqs.cmake.in
@@ -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@")
+