CompleteBundleWin.cmake.in 951 B

123456789101112131415161718192021222324
  1. execute_process(COMMAND @QTROOT@/bin/windeployqt.exe --verbose 9 --qmldir @SOURCE_ROOT@/src/ui ${CMAKE_INSTALL_PREFIX}/PlexMediaPlayer.exe)
  2. # on windows windeployqt doesnt install non qt libraries, let cmake do that
  3. include(BundleUtilities)
  4. foreach(d @CMAKE_FIND_ROOT_PATH@)
  5. list(APPEND SEARCHDIRS ${d}/bin)
  6. list(APPEND SEARCHDIRS ${d}/lib)
  7. endforeach()
  8. get_filename_component(CEC_DIR @CEC_LIBRARY@ DIRECTORY)
  9. list(APPEND SEARCHDIRS ${CEC_DIR})
  10. fixup_bundle("${CMAKE_INSTALL_PREFIX}/PlexMediaPlayer.exe" "" "${SEARCHDIRS}")
  11. #install(PROGRAMS ${VCREDIST_DIR}/vc_redist_2015_x64.exe DESTINATION .)
  12. if(@DO_SIGN@)
  13. file(GLOB_RECURSE EXES ${CMAKE_INSTALL_PREFIX}/*.exe ${CMAKE_INSTALL_PREFIX}/*.dll)
  14. set(ENV{errorlevel} 1)
  15. foreach(e ${EXES})
  16. message("-- Signing: ${CMAKE_SOURCE_DIR}/scripts/WindowsSign.cmd ${e}")
  17. execute_process(COMMAND ${CMAKE_SOURCE_DIR}/scripts/WindowsSign.cmd "${e}" RESULT_VARIABLE RES)
  18. endforeach()
  19. endif()