From 5c7bdde200e2bf4efb348afc6bfc4a5941a95ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 30 May 2016 14:04:28 +0200 Subject: [PATCH] Convert 2 unix --- cmake/fixbundle.cmake.win.in | 60 +++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/cmake/fixbundle.cmake.win.in b/cmake/fixbundle.cmake.win.in index cdea44e0..3143d9da 100644 --- a/cmake/fixbundle.cmake.win.in +++ b/cmake/fixbundle.cmake.win.in @@ -1,29 +1,31 @@ -# gp_item_default_embedded_path_override item default_embedded_path_var -# -# Return the path that others should refer to the item by when the item -# is embedded inside a bundle. -# -# This is a project-specific override of BundleUtilities.cmake's -# gp_item_default_embedded_path -# -function(gp_item_default_embedded_path_override item default_embedded_path_var) - - # By default, embed items as set by gp_item_default_embedded_path: - # - set(path "${${default_embedded_path_var}}") - - set(${default_embedded_path_var} "${path}" PARENT_SCOPE) -endfunction(gp_item_default_embedded_path_override) - -include (BundleUtilities) - -# Get library paths -get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH) - -# fix all dependencies -fixup_bundle ("@CMAKE_BINARY_DIR@/Build/Smoothing.exe" "" "${_GlutDir};@QT_BINARY_DIR@") - - - - - +# gp_item_default_embedded_path_override item default_embedded_path_var +# +# Return the path that others should refer to the item by when the item +# is embedded inside a bundle. +# +# This is a project-specific override of BundleUtilities.cmake's +# gp_item_default_embedded_path +# +function(gp_item_default_embedded_path_override item default_embedded_path_var) + + # By default, embed items as set by gp_item_default_embedded_path: + # + set(path "${${default_embedded_path_var}}") + + set(${default_embedded_path_var} "${path}" PARENT_SCOPE) +endfunction(gp_item_default_embedded_path_override) + +include (BundleUtilities) + +if(BUILD_APPS) + # Get library paths + get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH) + + # fix all dependencies + fixup_bundle ("@CMAKE_BINARY_DIR@/Build/Smoothing.exe" "" "${_GlutDir};@QT_BINARY_DIR@") +endif() + + + + +