fixbundle.cmake.win.in 1 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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)

Jan Möbius's avatar
Jan Möbius committed
23
24
25
26
27
# Get all executables in build dir
list( APPEND EXECUTABLES "@CMAKE_BINARY_DIR@/Build/*.exe" )

message(STATUS "Fixing ${EXECUTABLES}")

28
# fix all dependencies
Jan Möbius's avatar
Jan Möbius committed
29
30
foreach( CURRENTEXE ${EXECUTABLES})
   fixup_bundle (${CURRENTEXE} "" "${_GlutDir};${_GlewDir};@QT_BINARY_DIR@")
Jan Möbius's avatar
Jan Möbius committed
31
endforeach()
Jan Möbius's avatar
Jan Möbius committed
32

33
34
35