CompleteBundleWin.cmake.in 878 B

1234567891011121314151617181920212223
  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. if(@DO_SIGN@)
  12. file(GLOB_RECURSE EXES ${CMAKE_INSTALL_PREFIX}/*.exe ${CMAKE_INSTALL_PREFIX}/*.dll)
  13. set(ENV{errorlevel} 1)
  14. foreach(e ${EXES})
  15. message("-- Signing: ${CMAKE_SOURCE_DIR}/scripts/WindowsSign.cmd ${e}")
  16. execute_process(COMMAND ${CMAKE_SOURCE_DIR}/scripts/WindowsSign.cmd "${e}" RESULT_VARIABLE RES)
  17. endforeach()
  18. endif()