Files
openmesh/cmake/fixbundle.cmake.win.in
Jan Möbius 9d4605c4b8 Fix typo
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@381 fdac6126-5c0c-442c-9429-916003d36597
2011-03-09 10:14:43 +00:00

36 lines
1.0 KiB
Plaintext

# 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)
# Get all executables in build dir
list( APPEND EXECUTABLES "@CMAKE_BINARY_DIR@/Build/*.exe" )
message(STATUS "Fixing ${EXECUTABLES}")
# fix all dependencies
foreach( CURRENTEXE ${EXECUTABLES})
fixup_bundle (${CURRENTEXE} "" "${_GlutDir};${_GlewDir};@QT_BINARY_DIR@")
endforeach()