CopyMSVCBins.cmake 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. # Doesn't really make sense anywhere else
  2. if(NOT MSVC)
  3. return()
  4. endif()
  5. # Internal variable to avoid copying more than once
  6. if(COPIED_DEPENDENCIES)
  7. return()
  8. endif()
  9. option(COPY_DEPENDENCIES "Automatically try copying all dependencies" ON)
  10. if(NOT COPY_DEPENDENCIES)
  11. return()
  12. endif()
  13. if(CMAKE_SIZEOF_VOID_P EQUAL 8)
  14. set(_bin_suffix 64)
  15. else()
  16. set(_bin_suffix 32)
  17. endif()
  18. file(
  19. GLOB
  20. FFMPEG_BIN_FILES
  21. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/avcodec-*.dll"
  22. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/avcodec-*.dll"
  23. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/avcodec-*.dll"
  24. "${FFMPEG_avformat_INCLUDE_DIR}/../bin/avformat-*.dll"
  25. "${FFMPEG_avformat_INCLUDE_DIR}/../bin${_bin_suffix}/avformat-*.dll"
  26. "${FFMPEG_avformat_INCLUDE_DIR}/bin${_bin_suffix}/avformat-*.dll"
  27. "${FFMPEG_avutil_INCLUDE_DIR}/../bin/avutil-*.dll"
  28. "${FFMPEG_avutil_INCLUDE_DIR}/../bin${_bin_suffix}/avutil-*.dll"
  29. "${FFMPEG_avutil_INCLUDE_DIR}/bin${_bin_suffix}/avutil-*.dll"
  30. "${FFMPEG_avdevice_INCLUDE_DIR}/../bin/avdevice-*.dll"
  31. "${FFMPEG_avdevice_INCLUDE_DIR}/../bin${_bin_suffix}/avdevice-*.dll"
  32. "${FFMPEG_avdevice_INCLUDE_DIR}/bin${_bin_suffix}/avdevice-*.dll"
  33. "${FFMPEG_avfilter_INCLUDE_DIR}/../bin/avfilter-*.dll"
  34. "${FFMPEG_avfilter_INCLUDE_DIR}/../bin${_bin_suffix}/avfilter-*.dll"
  35. "${FFMPEG_avfilter_INCLUDE_DIR}/bin${_bin_suffix}/avfilter-*.dll"
  36. "${FFMPEG_postproc_INCLUDE_DIR}/../bin/postproc-*.dll"
  37. "${FFMPEG_postproc_INCLUDE_DIR}/../bin${_bin_suffix}/postproc-*.dll"
  38. "${FFMPEG_postproc_INCLUDE_DIR}/bin${_bin_suffix}/postproc-*.dll"
  39. "${FFMPEG_swscale_INCLUDE_DIR}/../bin/swscale-*.dll"
  40. "${FFMPEG_swscale_INCLUDE_DIR}/bin${_bin_suffix}/swscale-*.dll"
  41. "${FFMPEG_swscale_INCLUDE_DIR}/../bin${_bin_suffix}/swscale-*.dll"
  42. "${FFMPEG_swresample_INCLUDE_DIR}/../bin/swresample-*.dll"
  43. "${FFMPEG_swresample_INCLUDE_DIR}/../bin${_bin_suffix}/swresample-*.dll"
  44. "${FFMPEG_swresample_INCLUDE_DIR}/bin${_bin_suffix}/swresample-*.dll"
  45. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libopus*.dll"
  46. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/opus*.dll"
  47. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libopus*.dll"
  48. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/opus*.dll"
  49. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libogg*.dll"
  50. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libvorbis*.dll"
  51. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libogg*.dll"
  52. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libvorbis*.dll"
  53. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libvpx*.dll"
  54. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libvpx*.dll"
  55. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libsrt*.dll"
  56. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libsrt*.dll"
  57. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libmbedcrypto*.dll"
  58. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libmbedcrypto*.dll"
  59. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libmbedtls*.dll"
  60. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libmbedtls*.dll"
  61. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libmbedx509*.dll"
  62. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libmbedx509*.dll"
  63. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libopus*.dll"
  64. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/opus*.dll"
  65. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libopus*.dll"
  66. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/opus*.dll"
  67. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libbz2*.dll"
  68. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/zlib*.dll"
  69. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libbz2*.dll"
  70. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/zlib*.dll"
  71. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libSvtAv1Enc.dll"
  72. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libSvtAv1Enc.dll"
  73. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libSvtAv1Enc.dll"
  74. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libSvtAv1Enc.dll"
  75. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libaom.dll"
  76. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libaom.dll"
  77. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/libaom.dll"
  78. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/libaom.dll"
  79. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/librist.dll"
  80. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/librist.dll"
  81. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin/librist.dll"
  82. "${FFMPEG_avcodec_INCLUDE_DIR}/bin/librist.dll"
  83. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/libbz2*.dll"
  84. "${FFMPEG_avcodec_INCLUDE_DIR}/../bin${_bin_suffix}/zlib*.dll"
  85. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/libbz2*.dll"
  86. "${FFMPEG_avcodec_INCLUDE_DIR}/bin${_bin_suffix}/zlib*.dll")
  87. file(
  88. GLOB
  89. X264_BIN_FILES
  90. "${X264_INCLUDE_DIR}/../bin${_bin_suffix}/libx264-*.dll"
  91. "${X264_INCLUDE_DIR}/../bin/libx264-*.dll"
  92. "${X264_INCLUDE_DIR}/bin/libx264-*.dll"
  93. "${X264_INCLUDE_DIR}/bin${_bin_suffix}/libx264-*.dll")
  94. file(
  95. GLOB
  96. FREETYPE_BIN_FILES
  97. "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin${_bin_suffix}/libfreetype*-*.dll"
  98. "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin/libfreetype*-*.dll"
  99. "${FREETYPE_INCLUDE_DIR_ft2build}/../bin${_bin_suffix}/libfreetype*-*.dll"
  100. "${FREETYPE_INCLUDE_DIR_ft2build}/../bin/libfreetype*-*.dll"
  101. "${FREETYPE_INCLUDE_DIR_ft2build}/bin/libfreetype*-*.dll"
  102. "${FREETYPE_INCLUDE_DIR_ft2build}/bin${_bin_suffix}/libfreetype*-*.dll"
  103. "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin${_bin_suffix}/freetype.dll"
  104. "${FREETYPE_INCLUDE_DIR_ft2build}/../../bin/freetype.dll"
  105. "${FREETYPE_INCLUDE_DIR_ft2build}/../bin${_bin_suffix}/freetype.dll"
  106. "${FREETYPE_INCLUDE_DIR_ft2build}/../bin/freetype.dll")
  107. file(
  108. GLOB
  109. LIBFDK_BIN_FILES
  110. "${Libfdk_INCLUDE_DIR}/../bin${_bin_suffix}/libfdk*-*.dll"
  111. "${Libfdk_INCLUDE_DIR}/../bin/libfdk*-*.dll"
  112. "${Libfdk_INCLUDE_DIR}/bin/libfdk*-*.dll"
  113. "${Libfdk_INCLUDE_DIR}/bin${_bin_suffix}/libfdk*-*.dll")
  114. file(
  115. GLOB
  116. SSL_BIN_FILES
  117. "${SSL_INCLUDE_DIR}/../bin${_bin_suffix}/ssleay32*.dll"
  118. "${SSL_INCLUDE_DIR}/../bin${_bin_suffix}/libeay32*.dll"
  119. "${SSL_INCLUDE_DIR}/../bin/ssleay32*.dll"
  120. "${SSL_INCLUDE_DIR}/../bin/libeay32*.dll"
  121. "${SSL_INCLUDE_DIR}/bin${_bin_suffix}/ssleay32*.dll"
  122. "${SSL_INCLUDE_DIR}/bin${_bin_suffix}/libeay32*.dll"
  123. "${SSL_INCLUDE_DIR}/bin/ssleay32*.dll"
  124. "${SSL_INCLUDE_DIR}/bin/libeay32*.dll")
  125. file(
  126. GLOB
  127. CURL_BIN_FILES
  128. "${CURL_INCLUDE_DIR}/../build/Win${_bin_suffix}/VC12/DLL Release - DLL Windows SSPI/libcurl.dll"
  129. "${CURL_INCLUDE_DIR}/../bin${_bin_suffix}/libcurl*.dll"
  130. "${CURL_INCLUDE_DIR}/../bin${_bin_suffix}/curl*.dll"
  131. "${CURL_INCLUDE_DIR}/../bin/libcurl*.dll"
  132. "${CURL_INCLUDE_DIR}/../bin/curl*.dll"
  133. "${CURL_INCLUDE_DIR}/bin${_bin_suffix}/libcurl*.dll"
  134. "${CURL_INCLUDE_DIR}/bin${_bin_suffix}/curl*.dll"
  135. "${CURL_INCLUDE_DIR}/bin/libcurl*.dll"
  136. "${CURL_INCLUDE_DIR}/bin/curl*.dll")
  137. file(
  138. GLOB
  139. LUA_BIN_FILES
  140. "${LUAJIT_INCLUDE_DIR}/../../bin${_bin_suffix}/lua*.dll"
  141. "${LUAJIT_INCLUDE_DIR}/../../bin/lua*.dll"
  142. "${LUAJIT_INCLUDE_DIR}/../bin${_bin_suffix}/lua*.dll"
  143. "${LUAJIT_INCLUDE_DIR}/../bin/lua*.dll"
  144. "${LUAJIT_INCLUDE_DIR}/bin${_bin_suffix}/lua*.dll"
  145. "${LUAJIT_INCLUDE_DIR}/bin/lua*.dll"
  146. "${LUAJIT_INCLUDE_DIR}/lua*.dll")
  147. if(ZLIB_LIB)
  148. get_filename_component(ZLIB_BIN_PATH ${ZLIB_LIB} PATH)
  149. endif()
  150. file(GLOB ZLIB_BIN_FILES "${ZLIB_BIN_PATH}/zlib*.dll")
  151. if(NOT ZLIB_BIN_FILES)
  152. file(
  153. GLOB
  154. ZLIB_BIN_FILES
  155. "${ZLIB_INCLUDE_DIR}/../bin${_bin_suffix}/zlib*.dll"
  156. "${ZLIB_INCLUDE_DIR}/../bin/zlib*.dll"
  157. "${ZLIB_INCLUDE_DIR}/bin${_bin_suffix}/zlib*.dll"
  158. "${ZLIB_INCLUDE_DIR}/bin/zlib*.dll")
  159. endif()
  160. file(GLOB RNNOISE_BIN_FILES
  161. "${RNNOISE_INCLUDE_DIR}/../bin${_bin_suffix}/rnnoise*.dll"
  162. "${RNNOISE_INCLUDE_DIR}/../bin/rnnoise*.dll")
  163. file(
  164. GLOB
  165. QT_DEBUG_BIN_FILES
  166. "${Qt5Core_DIR}/../../../bin/Qt5Cored.dll"
  167. "${Qt5Core_DIR}/../../../bin/Qt5Guid.dll"
  168. "${Qt5Core_DIR}/../../../bin/Qt5Widgetsd.dll"
  169. "${Qt5Core_DIR}/../../../bin/Qt5WinExtrasd.dll"
  170. "${Qt5Core_DIR}/../../../bin/Qt5Svgd.dll"
  171. "${Qt5Core_DIR}/../../../bin/Qt5Xmld.dll"
  172. "${Qt5Core_DIR}/../../../bin/Qt5Networkd.dll"
  173. "${Qt5Core_DIR}/../../../bin/libGLESv2d.dll"
  174. "${Qt5Core_DIR}/../../../bin/libEGLd.dll")
  175. file(GLOB QT_DEBUG_PLAT_BIN_FILES
  176. "${Qt5Core_DIR}/../../../plugins/platforms/qwindowsd.dll")
  177. file(GLOB QT_DEBUG_STYLES_BIN_FILES
  178. "${Qt5Core_DIR}/../../../plugins/styles/qwindowsvistastyled.dll")
  179. file(GLOB QT_DEBUG_ICONENGINE_BIN_FILES
  180. "${Qt5Core_DIR}/../../../plugins/iconengines/qsvgicond.dll")
  181. file(
  182. GLOB
  183. QT_DEBUG_IMAGEFORMATS_BIN_FILES
  184. "${Qt5Core_DIR}/../../../plugins/imageformats/qsvgd.dll"
  185. "${Qt5Core_DIR}/../../../plugins/imageformats/qgifd.dll"
  186. "${Qt5Core_DIR}/../../../plugins/imageformats/qjpegd.dll")
  187. file(
  188. GLOB
  189. QT_BIN_FILES
  190. "${Qt5Core_DIR}/../../../bin/Qt5Core.dll"
  191. "${Qt5Core_DIR}/../../../bin/Qt5Gui.dll"
  192. "${Qt5Core_DIR}/../../../bin/Qt5Widgets.dll"
  193. "${Qt5Core_DIR}/../../../bin/Qt5WinExtras.dll"
  194. "${Qt5Core_DIR}/../../../bin/Qt5Svg.dll"
  195. "${Qt5Core_DIR}/../../../bin/Qt5Xml.dll"
  196. "${Qt5Core_DIR}/../../../bin/Qt5Network.dll"
  197. "${Qt5Core_DIR}/../../../bin/libGLESv2.dll"
  198. "${Qt5Core_DIR}/../../../bin/libEGL.dll")
  199. file(GLOB QT_PLAT_BIN_FILES
  200. "${Qt5Core_DIR}/../../../plugins/platforms/qwindows.dll")
  201. file(GLOB QT_STYLES_BIN_FILES
  202. "${Qt5Core_DIR}/../../../plugins/styles/qwindowsvistastyle.dll")
  203. file(GLOB QT_ICONENGINE_BIN_FILES
  204. "${Qt5Core_DIR}/../../../plugins/iconengines/qsvgicon.dll")
  205. file(
  206. GLOB
  207. QT_IMAGEFORMATS_BIN_FILES
  208. "${Qt5Core_DIR}/../../../plugins/imageformats/qsvg.dll"
  209. "${Qt5Core_DIR}/../../../plugins/imageformats/qgif.dll"
  210. "${Qt5Core_DIR}/../../../plugins/imageformats/qjpeg.dll")
  211. file(GLOB QT_ICU_BIN_FILES "${Qt5Core_DIR}/../../../bin/icu*.dll")
  212. set(ALL_BASE_BIN_FILES
  213. ${FFMPEG_BIN_FILES}
  214. ${X264_BIN_FILES}
  215. ${CURL_BIN_FILES}
  216. ${LUA_BIN_FILES}
  217. ${SSL_BIN_FILES}
  218. ${ZLIB_BIN_FILES}
  219. ${LIBFDK_BIN_FILES}
  220. ${FREETYPE_BIN_FILES}
  221. ${RNNOISE_BIN_FILES}
  222. ${QT_ICU_BIN_FILES})
  223. set(ALL_REL_BIN_FILES ${QT_BIN_FILES})
  224. set(ALL_DBG_BIN_FILES ${QT_DEBUG_BIN_FILES})
  225. set(ALL_PLATFORM_BIN_FILES)
  226. set(ALL_PLATFORM_REL_BIN_FILES ${QT_PLAT_BIN_FILES})
  227. set(ALL_PLATFORM_DBG_BIN_FILES ${QT_DEBUG_PLAT_BIN_FILES})
  228. set(ALL_STYLES_BIN_FILES)
  229. set(ALL_STYLES_REL_BIN_FILES ${QT_STYLES_BIN_FILES})
  230. set(ALL_STYLES_DBG_BIN_FILES ${QT_DEBUG_STYLES_BIN_FILES})
  231. set(ALL_ICONENGINE_BIN_FILES)
  232. set(ALL_ICONENGINE_REL_BIN_FILES ${QT_ICONENGINE_BIN_FILES})
  233. set(ALL_ICONENGINE_DBG_BIN_FILES ${QT_DEBUG_ICONENGINE_BIN_FILES})
  234. set(ALL_IMAGEFORMATS_BIN_FILES)
  235. set(ALL_IMAGEFORMATS_REL_BIN_FILES ${QT_IMAGEFORMATS_BIN_FILES})
  236. set(ALL_IMAGEFORMATS_DBG_BIN_FILES ${QT_DEBUG_IMAGEFORMATS_BIN_FILES})
  237. foreach(
  238. list
  239. ALL_BASE_BIN_FILES
  240. ALL_REL_BIN_FILES
  241. ALL_DBG_BIN_FILES
  242. ALL_PLATFORM_BIN_FILES
  243. ALL_PLATFORM_REL_BIN_FILES
  244. ALL_PLATFORM_DBG_BIN_FILES
  245. ALL_STYLES_BIN_FILES
  246. ALL_STYLES_REL_BIN_FILES
  247. ALL_STYLES_DBG_BIN_FILES
  248. ALL_ICONENGINE_BIN_FILES
  249. ALL_ICONENGINE_REL_BIN_FILES
  250. ALL_ICONENGINE_DGB_BIN_FILES
  251. ALL_IMAGEFORMATS_BIN_FILES
  252. ALL_IMAGEFORMATS_REL_BIN_FILES
  253. ALL_IMAGEFORMATS_DGB_BIN_FILES)
  254. if(${list})
  255. list(REMOVE_DUPLICATES ${list})
  256. endif()
  257. endforeach()
  258. message(STATUS "FFmpeg files: ${FFMPEG_BIN_FILES}")
  259. message(STATUS "x264 files: ${X264_BIN_FILES}")
  260. message(STATUS "Libfdk files: ${LIBFDK_BIN_FILES}")
  261. message(STATUS "Freetype files: ${FREETYPE_BIN_FILES}")
  262. message(STATUS "rnnoise files: ${RNNOISE_BIN_FILES}")
  263. message(STATUS "curl files: ${CURL_BIN_FILES}")
  264. message(STATUS "lua files: ${LUA_BIN_FILES}")
  265. message(STATUS "ssl files: ${SSL_BIN_FILES}")
  266. message(STATUS "zlib files: ${ZLIB_BIN_FILES}")
  267. message(STATUS "QT Debug files: ${QT_DEBUG_BIN_FILES}")
  268. message(STATUS "QT Debug Platform files: ${QT_DEBUG_PLAT_BIN_FILES}")
  269. message(STATUS "QT Debug Styles files: ${QT_DEBUG_STYLES_BIN_FILES}")
  270. message(STATUS "QT Debug Iconengine files: ${QT_DEBUG_ICONENGINE_BIN_FILES}")
  271. message(STATUS "QT Debug Imageformat files: ${QT_DEBUG_IMAGEFORMATS_BIN_FILES}")
  272. message(STATUS "QT Release files: ${QT_BIN_FILES}")
  273. message(STATUS "QT Release Platform files: ${QT_PLAT_BIN_FILES}")
  274. message(STATUS "QT Release Styles files: ${QT_STYLES_BIN_FILES}")
  275. message(STATUS "QT Release Iconengine files: ${QT_ICONENGINE_BIN_FILES}")
  276. message(STATUS "QT Release Imageformat files: ${QT_IMAGEFORMATS_BIN_FILES}")
  277. message(STATUS "QT ICU files: ${QT_ICU_BIN_FILES}")
  278. foreach(BinFile ${ALL_BASE_BIN_FILES})
  279. message(
  280. STATUS
  281. "copying ${BinFile} to ${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}"
  282. )
  283. file(
  284. COPY "${BinFile}"
  285. DESTINATION
  286. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/")
  287. endforeach()
  288. foreach(BinFile ${ALL_REL_BIN_FILES})
  289. message(
  290. STATUS
  291. "copying ${BinFile} to ${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r"
  292. )
  293. file(
  294. COPY "${BinFile}"
  295. DESTINATION
  296. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/")
  297. endforeach()
  298. foreach(BinFile ${ALL_DBG_BIN_FILES})
  299. message(
  300. STATUS
  301. "copying ${BinFile} to ${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d"
  302. )
  303. file(
  304. COPY "${BinFile}"
  305. DESTINATION
  306. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/")
  307. endforeach()
  308. foreach(BinFile ${ALL_PLATFORM_BIN_FILES})
  309. make_directory(
  310. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/platforms")
  311. file(
  312. COPY "${BinFile}"
  313. DESTINATION
  314. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/platforms/"
  315. )
  316. endforeach()
  317. foreach(BinFile ${ALL_PLATFORM_REL_BIN_FILES})
  318. make_directory(
  319. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/platforms"
  320. )
  321. file(
  322. COPY "${BinFile}"
  323. DESTINATION
  324. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/platforms/"
  325. )
  326. endforeach()
  327. foreach(BinFile ${ALL_PLATFORM_DBG_BIN_FILES})
  328. make_directory(
  329. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/platforms"
  330. )
  331. file(
  332. COPY "${BinFile}"
  333. DESTINATION
  334. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/platforms/"
  335. )
  336. endforeach()
  337. foreach(BinFile ${ALL_STYLES_BIN_FILES})
  338. make_directory(
  339. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/styles")
  340. file(
  341. COPY "${BinFile}"
  342. DESTINATION
  343. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/styles/")
  344. endforeach()
  345. foreach(BinFile ${ALL_STYLES_REL_BIN_FILES})
  346. make_directory(
  347. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/styles")
  348. file(
  349. COPY "${BinFile}"
  350. DESTINATION
  351. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/styles/"
  352. )
  353. endforeach()
  354. foreach(BinFile ${ALL_STYLES_DBG_BIN_FILES})
  355. make_directory(
  356. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/styles")
  357. file(
  358. COPY "${BinFile}"
  359. DESTINATION
  360. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/styles/"
  361. )
  362. endforeach()
  363. foreach(BinFile ${ALL_ICONENGINE_BIN_FILES})
  364. make_directory(
  365. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/iconengines"
  366. )
  367. file(
  368. COPY "${BinFile}"
  369. DESTINATION
  370. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/iconengines/"
  371. )
  372. endforeach()
  373. foreach(BinFile ${ALL_ICONENGINE_REL_BIN_FILES})
  374. make_directory(
  375. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/iconengines"
  376. )
  377. file(
  378. COPY "${BinFile}"
  379. DESTINATION
  380. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/iconengines/"
  381. )
  382. endforeach()
  383. foreach(BinFile ${ALL_ICONENGINE_DBG_BIN_FILES})
  384. make_directory(
  385. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/iconengines"
  386. )
  387. file(
  388. COPY "${BinFile}"
  389. DESTINATION
  390. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/iconengines/"
  391. )
  392. endforeach()
  393. foreach(BinFile ${ALL_IMAGEFORMATS_BIN_FILES})
  394. make_directory(
  395. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/imageformats"
  396. )
  397. file(
  398. COPY "${BinFile}"
  399. DESTINATION
  400. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}/imageformats/"
  401. )
  402. endforeach()
  403. foreach(BinFile ${ALL_IMAGEFORMATS_REL_BIN_FILES})
  404. make_directory(
  405. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/imageformats"
  406. )
  407. file(
  408. COPY "${BinFile}"
  409. DESTINATION
  410. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}r/imageformats/"
  411. )
  412. endforeach()
  413. foreach(BinFile ${ALL_IMAGEFORMATS_DBG_BIN_FILES})
  414. make_directory(
  415. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/imageformats"
  416. )
  417. file(
  418. COPY "${BinFile}"
  419. DESTINATION
  420. "${CMAKE_SOURCE_DIR}/additional_install_files/exec${_bin_suffix}d/imageformats/"
  421. )
  422. endforeach()
  423. set(COPIED_DEPENDENCIES
  424. TRUE
  425. CACHE BOOL "Dependencies have been copied, set to false to copy again"
  426. FORCE)