CompleteBundleWin.cmake.in 1001 B

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