From 1d74986f4328e071822659be6407f2ded3c5d9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 9 Mar 2011 10:13:52 +0000 Subject: [PATCH] Fix all exes git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@380 fdac6126-5c0c-442c-9429-916003d36597 --- cmake/fixbundle.cmake.win.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmake/fixbundle.cmake.win.in b/cmake/fixbundle.cmake.win.in index 368ab0bf..d34d9ada 100644 --- a/cmake/fixbundle.cmake.win.in +++ b/cmake/fixbundle.cmake.win.in @@ -20,8 +20,16 @@ include (BundleUtilities) # Get library paths get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH) +# Get all executables in build dir +list( APPEND EXECUTABLES "@CMAKE_BINARY_DIR@/Build/*.exe" ) + +message(STATUS "Fixing ${EXECUTABLES}") + # fix all dependencies -fixup_bundle ("@CMAKE_BINARY_DIR@/Build/*" "" "${_GlutDir};${_GlewDir};@QT_BINARY_DIR@") +foreach( CURRENTEXE ${EXECUTABLES}) + fixup_bundle (${CURRENTEXE} "" "${_GlutDir};${_GlewDir};@QT_BINARY_DIR@") +endforeach(loop_var) +