From: Michael Schuster Date: Sat, 5 Sep 2020 02:39:05 +0000 (+0200) Subject: Windows MSI: Let CMake install Shell Extensions WiX fragment to "msi/" X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~153^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc365df5de6e61b9e5e357cc609bece034b45c4e;p=nextcloud-desktop.git Windows MSI: Let CMake install Shell Extensions WiX fragment to "msi/" Signed-off-by: Michael Schuster --- diff --git a/shell_integration/windows/CMakeLists.txt b/shell_integration/windows/CMakeLists.txt index d75d2574d..e57f552ad 100644 --- a/shell_integration/windows/CMakeLists.txt +++ b/shell_integration/windows/CMakeLists.txt @@ -7,9 +7,16 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) configure_file(WinShellExtConstants.h.in ${CMAKE_CURRENT_BINARY_DIR}/WinShellExtConstants.h) -configure_file(WinShellExt.wxs.in ${CMAKE_CURRENT_BINARY_DIR}/WinShellExt.wxs) add_subdirectory(NCContextMenu) add_subdirectory(NCOverlays) add_subdirectory(NCUtil) +if(BUILD_WIN_MSI) + configure_file(WinShellExt.wxs.in ${CMAKE_CURRENT_BINARY_DIR}/WinShellExt.wxs) + + install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/WinShellExt.wxs + DESTINATION msi/ + ) +endif() diff --git a/shell_integration/windows/WinShellExt.wxs.in b/shell_integration/windows/WinShellExt.wxs.in index 6ac42dca4..138258fb8 100644 --- a/shell_integration/windows/WinShellExt.wxs.in +++ b/shell_integration/windows/WinShellExt.wxs.in @@ -14,7 +14,7 @@ * for more details. * --> - +