Windows MSI: Let CMake install Shell Extensions WiX fragment to "msi/"

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2020-09-05 04:39:05 +02:00
parent fad9b2c969
commit fc365df5de
No known key found for this signature in database
GPG Key ID: 00819E3BF4177B28
2 changed files with 9 additions and 2 deletions

View File

@ -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()

View File

@ -14,7 +14,7 @@
* for more details.
*
-->
<?include $(var.ProjectPath)Platform.wxi?>
<?include $(sys.CURRENTDIR)Platform.wxi?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>