File: CopyMSVCBins.cmake

package info (click to toggle)
obs-studio 30.2.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,852 kB
  • sloc: ansic: 202,137; cpp: 112,402; makefile: 868; python: 599; sh: 275; javascript: 19
file content (364 lines) | stat: -rw-r--r-- 16,397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
# Doesn't really make sense anywhere else
if(NOT MSVC)
  return()
endif()

# Internal variable to avoid copying more than once
if(COPIED_DEPENDENCIES)
  return()
endif()

option(COPY_DEPENDENCIES "Automatically try copying all dependencies" ON)
if(NOT COPY_DEPENDENCIES)
  return()
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
  set(_bin_suffix 64)
else()
  set(_bin_suffix 32)
endif()

file(
  GLOB
  FFMPEG_BIN_FILES
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/avcodec-*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/avcodec-*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/avcodec-*.dll"
  "${FFMPEG_avformat_INCLUDE_DIR}/../bin/avformat-*.dll"
  "${FFMPEG_avformat_INCLUDE_DIR}/../bin${_bin_suffix}/avformat-*.dll"
  "${FFMPEG_avformat_INCLUDE_DIR}/bin${_bin_suffix}/avformat-*.dll"
  "${FFMPEG_avutil_INCLUDE_DIR}/../bin/avutil-*.dll"
  "${FFMPEG_avutil_INCLUDE_DIR}/../bin${_bin_suffix}/avutil-*.dll"
  "${FFMPEG_avutil_INCLUDE_DIR}/bin${_bin_suffix}/avutil-*.dll"
  "${FFMPEG_avdevice_INCLUDE_DIR}/../bin/avdevice-*.dll"
  "${FFMPEG_avdevice_INCLUDE_DIR}/../bin${_bin_suffix}/avdevice-*.dll"
  "${FFMPEG_avdevice_INCLUDE_DIR}/bin${_bin_suffix}/avdevice-*.dll"
  "${FFMPEG_avfilter_INCLUDE_DIR}/../bin/avfilter-*.dll"
  "${FFMPEG_avfilter_INCLUDE_DIR}/../bin${_bin_suffix}/avfilter-*.dll"
  "${FFMPEG_avfilter_INCLUDE_DIR}/bin${_bin_suffix}/avfilter-*.dll"
  "${FFMPEG_postproc_INCLUDE_DIR}/../bin/postproc-*.dll"
  "${FFMPEG_postproc_INCLUDE_DIR}/../bin${_bin_suffix}/postproc-*.dll"
  "${FFMPEG_postproc_INCLUDE_DIR}/bin${_bin_suffix}/postproc-*.dll"
  "${FFMPEG_swscale_INCLUDE_DIR}/../bin/swscale-*.dll"
  "${FFMPEG_swscale_INCLUDE_DIR}/bin${_bin_suffix}/swscale-*.dll"
  "${FFMPEG_swscale_INCLUDE_DIR}/../bin${_bin_suffix}/swscale-*.dll"
  "${FFMPEG_swresample_INCLUDE_DIR}/../bin/swresample-*.dll"
  "${FFMPEG_swresample_INCLUDE_DIR}/../bin${_bin_suffix}/swresample-*.dll"
  "${FFMPEG_swresample_INCLUDE_DIR}/bin${_bin_suffix}/swresample-*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libopus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/opus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libopus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/opus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libogg*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libvorbis*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libogg*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libvorbis*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libvpx*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libvpx*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libsrt*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libsrt*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libmbedcrypto*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libmbedcrypto*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libmbedtls*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libmbedtls*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libmbedx509*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libmbedx509*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libopus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/opus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libopus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/opus*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libbz2*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/zlib*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libbz2*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/zlib*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libSvtAv1Enc.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libSvtAv1Enc.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libSvtAv1Enc.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libSvtAv1Enc.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libaom.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libaom.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libaom.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libaom.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/librist.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/librist.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/librist.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/librist.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libbz2*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/zlib*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libbz2*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/zlib*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/*datachannel*.dll"
  "${FFMPEG_avcodec_INCLUDE_DIR}/bin/*datachannel*.dll")

file(GLOB X264_BIN_FILES "${X264_INCLUDE_DIR}/../bin${_bin_suffix}/libx264-*.dll"
     "${X264_INCLUDE_DIR}/../bin/libx264-*.dll" "${X264_INCLUDE_DIR}/bin/libx264-*.dll"
     "${X264_INCLUDE_DIR}/bin${_bin_suffix}/libx264-*.dll")

file(
  GLOB
  FREETYPE_BIN_FILES
  "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin${_bin_suffix}/libfreetype*-*.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin/libfreetype*-*.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/../bin${_bin_suffix}/libfreetype*-*.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/../bin/libfreetype*-*.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/bin/libfreetype*-*.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/bin${_bin_suffix}/libfreetype*-*.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin${_bin_suffix}/freetype.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin/freetype.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/../bin${_bin_suffix}/freetype.dll"
  "${FREETYPE_INCLUDE_DIR_ft2build}/../bin/freetype.dll")

file(GLOB LIBFDK_BIN_FILES "${Libfdk_INCLUDE_DIR}/../bin${_bin_suffix}/libfdk*-*.dll"
     "${Libfdk_INCLUDE_DIR}/../bin/libfdk*-*.dll" "${Libfdk_INCLUDE_DIR}/bin/libfdk*-*.dll"
     "${Libfdk_INCLUDE_DIR}/bin${_bin_suffix}/libfdk*-*.dll")

file(
  GLOB
  SSL_BIN_FILES
  "${SSL_INCLUDE_DIR}/../bin${_bin_suffix}/ssleay32*.dll"
  "${SSL_INCLUDE_DIR}/../bin${_bin_suffix}/libeay32*.dll"
  "${SSL_INCLUDE_DIR}/../bin/ssleay32*.dll"
  "${SSL_INCLUDE_DIR}/../bin/libeay32*.dll"
  "${SSL_INCLUDE_DIR}/bin${_bin_suffix}/ssleay32*.dll"
  "${SSL_INCLUDE_DIR}/bin${_bin_suffix}/libeay32*.dll"
  "${SSL_INCLUDE_DIR}/bin/ssleay32*.dll"
  "${SSL_INCLUDE_DIR}/bin/libeay32*.dll")

if(NOT DEFINED CURL_INCLUDE_DIR AND TARGET CURL::libcurl)
  get_target_property(CURL_INCLUDE_DIR CURL::libcurl INTERFACE_INCLUDE_DIRECTORIES)
endif()

file(
  GLOB
  CURL_BIN_FILES
  "${CURL_INCLUDE_DIR}/../build/Win${_bin_suffix}/VC12/DLL Release - DLL Windows SSPI/libcurl.dll"
  "${CURL_INCLUDE_DIR}/../bin${_bin_suffix}/libcurl*.dll"
  "${CURL_INCLUDE_DIR}/../bin${_bin_suffix}/curl*.dll"
  "${CURL_INCLUDE_DIR}/../bin/libcurl*.dll"
  "${CURL_INCLUDE_DIR}/../bin/curl*.dll"
  "${CURL_INCLUDE_DIR}/bin${_bin_suffix}/libcurl*.dll"
  "${CURL_INCLUDE_DIR}/bin${_bin_suffix}/curl*.dll"
  "${CURL_INCLUDE_DIR}/bin/libcurl*.dll"
  "${CURL_INCLUDE_DIR}/bin/curl*.dll")

file(
  GLOB
  LUA_BIN_FILES
  "${LUAJIT_INCLUDE_DIR}/../../bin${_bin_suffix}/lua*.dll"
  "${LUAJIT_INCLUDE_DIR}/../../bin/lua*.dll"
  "${LUAJIT_INCLUDE_DIR}/../bin${_bin_suffix}/lua*.dll"
  "${LUAJIT_INCLUDE_DIR}/../bin/lua*.dll"
  "${LUAJIT_INCLUDE_DIR}/bin${_bin_suffix}/lua*.dll"
  "${LUAJIT_INCLUDE_DIR}/bin/lua*.dll"
  "${LUAJIT_INCLUDE_DIR}/lua*.dll")

if(ZLIB_LIB)
  get_filename_component(ZLIB_BIN_PATH ${ZLIB_LIB} PATH)
endif()
file(GLOB ZLIB_BIN_FILES "${ZLIB_BIN_PATH}/zlib*.dll")

if(NOT ZLIB_BIN_FILES)
  file(GLOB ZLIB_BIN_FILES "${ZLIB_INCLUDE_DIR}/../bin${_bin_suffix}/zlib*.dll" "${ZLIB_INCLUDE_DIR}/../bin/zlib*.dll"
       "${ZLIB_INCLUDE_DIR}/bin${_bin_suffix}/zlib*.dll" "${ZLIB_INCLUDE_DIR}/bin/zlib*.dll")
endif()

file(GLOB RNNOISE_BIN_FILES "${RNNOISE_INCLUDE_DIR}/../bin${_bin_suffix}/rnnoise*.dll"
     "${RNNOISE_INCLUDE_DIR}/../bin/rnnoise*.dll")

set(QtCore_DIR "${Qt6Core_DIR}")
cmake_path(SET QtCore_DIR_NORM NORMALIZE "${QtCore_DIR}/../../..")
set(QtCore_BIN_DIR "${QtCore_DIR_NORM}bin")
set(QtCore_PLUGIN_DIR "${QtCore_DIR_NORM}plugins")
obs_status(STATUS "QtCore_BIN_DIR: ${QtCore_BIN_DIR}")
obs_status(STATUS "QtCore_PLUGIN_DIR: ${QtCore_PLUGIN_DIR}")

file(
  GLOB
  QT_DEBUG_BIN_FILES
  "${QtCore_BIN_DIR}/Qt6Cored.dll"
  "${QtCore_BIN_DIR}/Qt6Guid.dll"
  "${QtCore_BIN_DIR}/Qt6Widgetsd.dll"
  "${QtCore_BIN_DIR}/Qt6Svgd.dll"
  "${QtCore_BIN_DIR}/Qt6Xmld.dll"
  "${QtCore_BIN_DIR}/Qt6Networkd.dll"
  "${QtCore_BIN_DIR}/libGLESv2d.dll"
  "${QtCore_BIN_DIR}/libEGLd.dll")
file(GLOB QT_DEBUG_PLAT_BIN_FILES "${QtCore_PLUGIN_DIR}/platforms/qwindowsd.dll")
file(GLOB QT_DEBUG_STYLES_BIN_FILES "${QtCore_PLUGIN_DIR}/styles/qwindowsvistastyled.dll")
file(GLOB QT_DEBUG_ICONENGINE_BIN_FILES "${QtCore_PLUGIN_DIR}/iconengines/qsvgicond.dll")
file(GLOB QT_DEBUG_IMAGEFORMATS_BIN_FILES "${QtCore_PLUGIN_DIR}/imageformats/qsvgd.dll"
     "${QtCore_PLUGIN_DIR}/imageformats/qgifd.dll" "${QtCore_PLUGIN_DIR}/imageformats/qjpegd.dll")

file(
  GLOB
  QT_BIN_FILES
  "${QtCore_BIN_DIR}/Qt6Core.dll"
  "${QtCore_BIN_DIR}/Qt6Gui.dll"
  "${QtCore_BIN_DIR}/Qt6Widgets.dll"
  "${QtCore_BIN_DIR}/Qt6Svg.dll"
  "${QtCore_BIN_DIR}/Qt6Xml.dll"
  "${QtCore_BIN_DIR}/Qt6Network.dll"
  "${QtCore_BIN_DIR}/libGLESv2.dll"
  "${QtCore_BIN_DIR}/libEGL.dll")
file(GLOB QT_PLAT_BIN_FILES "${QtCore_PLUGIN_DIR}/platforms/qwindows.dll")
file(GLOB QT_STYLES_BIN_FILES "${QtCore_PLUGIN_DIR}/styles/qwindowsvistastyle.dll")
file(GLOB QT_ICONENGINE_BIN_FILES "${QtCore_PLUGIN_DIR}/iconengines/qsvgicon.dll")
file(GLOB QT_IMAGEFORMATS_BIN_FILES "${QtCore_PLUGIN_DIR}/imageformats/qsvg.dll"
     "${QtCore_PLUGIN_DIR}/imageformats/qgif.dll" "${QtCore_PLUGIN_DIR}/imageformats/qjpeg.dll")

file(GLOB QT_ICU_BIN_FILES "${QtCore_BIN_DIR}/icu*.dll")

set(ALL_BASE_BIN_FILES
    ${FFMPEG_BIN_FILES}
    ${X264_BIN_FILES}
    ${CURL_BIN_FILES}
    ${LUA_BIN_FILES}
    ${SSL_BIN_FILES}
    ${ZLIB_BIN_FILES}
    ${LIBFDK_BIN_FILES}
    ${FREETYPE_BIN_FILES}
    ${RNNOISE_BIN_FILES}
    ${QT_ICU_BIN_FILES})

set(ALL_REL_BIN_FILES ${QT_BIN_FILES})

set(ALL_DBG_BIN_FILES ${QT_DEBUG_BIN_FILES})

set(ALL_PLATFORM_BIN_FILES)
set(ALL_PLATFORM_REL_BIN_FILES ${QT_PLAT_BIN_FILES})
set(ALL_PLATFORM_DBG_BIN_FILES ${QT_DEBUG_PLAT_BIN_FILES})

set(ALL_STYLES_BIN_FILES)
set(ALL_STYLES_REL_BIN_FILES ${QT_STYLES_BIN_FILES})
set(ALL_STYLES_DBG_BIN_FILES ${QT_DEBUG_STYLES_BIN_FILES})

set(ALL_ICONENGINE_BIN_FILES)
set(ALL_ICONENGINE_REL_BIN_FILES ${QT_ICONENGINE_BIN_FILES})
set(ALL_ICONENGINE_DBG_BIN_FILES ${QT_DEBUG_ICONENGINE_BIN_FILES})

set(ALL_IMAGEFORMATS_BIN_FILES)
set(ALL_IMAGEFORMATS_REL_BIN_FILES ${QT_IMAGEFORMATS_BIN_FILES})
set(ALL_IMAGEFORMATS_DBG_BIN_FILES ${QT_DEBUG_IMAGEFORMATS_BIN_FILES})

foreach(
  list
  ALL_BASE_BIN_FILES
  ALL_REL_BIN_FILES
  ALL_DBG_BIN_FILES
  ALL_PLATFORM_BIN_FILES
  ALL_PLATFORM_REL_BIN_FILES
  ALL_PLATFORM_DBG_BIN_FILES
  ALL_STYLES_BIN_FILES
  ALL_STYLES_REL_BIN_FILES
  ALL_STYLES_DBG_BIN_FILES
  ALL_ICONENGINE_BIN_FILES
  ALL_ICONENGINE_REL_BIN_FILES
  ALL_ICONENGINE_DGB_BIN_FILES
  ALL_IMAGEFORMATS_BIN_FILES
  ALL_IMAGEFORMATS_REL_BIN_FILES
  ALL_IMAGEFORMATS_DGB_BIN_FILES)
  if(${list})
    list(REMOVE_DUPLICATES ${list})
  endif()
endforeach()

obs_status(STATUS "FFmpeg files: ${FFMPEG_BIN_FILES}")
obs_status(STATUS "x264 files: ${X264_BIN_FILES}")
obs_status(STATUS "Libfdk files: ${LIBFDK_BIN_FILES}")
obs_status(STATUS "Freetype files: ${FREETYPE_BIN_FILES}")
obs_status(STATUS "rnnoise files: ${RNNOISE_BIN_FILES}")
obs_status(STATUS "curl files: ${CURL_BIN_FILES}")
obs_status(STATUS "lua files: ${LUA_BIN_FILES}")
obs_status(STATUS "ssl files: ${SSL_BIN_FILES}")
obs_status(STATUS "zlib files: ${ZLIB_BIN_FILES}")
obs_status(STATUS "Qt Debug files: ${QT_DEBUG_BIN_FILES}")
obs_status(STATUS "Qt Debug Platform files: ${QT_DEBUG_PLAT_BIN_FILES}")
obs_status(STATUS "Qt Debug Styles files: ${QT_DEBUG_STYLES_BIN_FILES}")
obs_status(STATUS "Qt Debug Iconengine files: ${QT_DEBUG_ICONENGINE_BIN_FILES}")
obs_status(STATUS "Qt Debug Imageformat files: ${QT_DEBUG_IMAGEFORMATS_BIN_FILES}")
obs_status(STATUS "Qt Release files: ${QT_BIN_FILES}")
obs_status(STATUS "Qt Release Platform files: ${QT_PLAT_BIN_FILES}")
obs_status(STATUS "Qt Release Styles files: ${QT_STYLES_BIN_FILES}")
obs_status(STATUS "Qt Release Iconengine files: ${QT_ICONENGINE_BIN_FILES}")
obs_status(STATUS "Qt Release Imageformat files: ${QT_IMAGEFORMATS_BIN_FILES}")
obs_status(STATUS "Qt ICU files: ${QT_ICU_BIN_FILES}")

foreach(BinFile ${ALL_BASE_BIN_FILES})
  obs_status(STATUS "copying ${BinFile} to ${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/")
endforeach()

foreach(BinFile ${ALL_REL_BIN_FILES})
  obs_status(STATUS "copying ${BinFile} to ${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/")
endforeach()

foreach(BinFile ${ALL_DBG_BIN_FILES})
  obs_status(STATUS "copying ${BinFile} to ${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/")
endforeach()

foreach(BinFile ${ALL_PLATFORM_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/platforms")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/platforms/")
endforeach()

foreach(BinFile ${ALL_PLATFORM_REL_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/platforms")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/platforms/")
endforeach()

foreach(BinFile ${ALL_PLATFORM_DBG_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/platforms")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/platforms/")
endforeach()

foreach(BinFile ${ALL_STYLES_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/styles")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/styles/")
endforeach()

foreach(BinFile ${ALL_STYLES_REL_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/styles")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/styles/")
endforeach()

foreach(BinFile ${ALL_STYLES_DBG_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/styles")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/styles/")
endforeach()

foreach(BinFile ${ALL_ICONENGINE_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/iconengines")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/iconengines/")
endforeach()

foreach(BinFile ${ALL_ICONENGINE_REL_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/iconengines")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/iconengines/")
endforeach()

foreach(BinFile ${ALL_ICONENGINE_DBG_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/iconengines")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/iconengines/")
endforeach()

foreach(BinFile ${ALL_IMAGEFORMATS_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/imageformats")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/imageformats/")
endforeach()

foreach(BinFile ${ALL_IMAGEFORMATS_REL_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/imageformats")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/imageformats/")
endforeach()

foreach(BinFile ${ALL_IMAGEFORMATS_DBG_BIN_FILES})
  make_directory("${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/imageformats")
  file(COPY "${BinFile}" DESTINATION "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/imageformats/")
endforeach()

set(COPIED_DEPENDENCIES
    TRUE
    CACHE BOOL "Dependencies have been copied, set to false to copy again" FORCE)