diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-11-19 20:38:09 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2013-11-26 21:15:57 (GMT) |
commit | 7b390f75e82ad79f6759656c52825c89e5c92902 (patch) | |
tree | f02ef0344b42aee09438326adf4cd5b6bb116bde /Modules | |
parent | 1da77bf1ee4f3ba315ebb00da2eaeac474614cad (diff) | |
download | CMake-7b390f75e82ad79f6759656c52825c89e5c92902.zip CMake-7b390f75e82ad79f6759656c52825c89e5c92902.tar.gz CMake-7b390f75e82ad79f6759656c52825c89e5c92902.tar.bz2 |
CPackWiX: add CPack component support
Creates a hierarchy of WiX features from CPack components and component groups.
Switch to the FeatureTree UI in case components have been defined.
Handles the component REQUIRE and HIDDEN options
and the component group EXPANDED option.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackWIX.cmake | 8 | ||||
-rw-r--r-- | Modules/WIX.template.in | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Modules/CPackWIX.cmake b/Modules/CPackWIX.cmake index 3f0978d..237c5bc 100644 --- a/Modules/CPackWIX.cmake +++ b/Modules/CPackWIX.cmake @@ -63,6 +63,14 @@ # # If set, this icon is used in place of the default icon. # +# .. variable:: CPACK_WIX_UI_REF +# +# This variable allows you to override the Id of the ``<UIRef>`` element +# in the WiX template. +# +# The default is ``WixUI_InstallDir`` in case no CPack components have +# been defined and ``WixUI_FeatureTree`` otherwise. +# # .. variable:: CPACK_WIX_UI_BANNER # # The bitmap will appear at the top of all installer pages other than the diff --git a/Modules/WIX.template.in b/Modules/WIX.template.in index 0bc7e10..59a75c7 100644 --- a/Modules/WIX.template.in +++ b/Modules/WIX.template.in @@ -39,6 +39,6 @@ <FeatureRef Id="ProductFeature"/> - <UIRef Id="WixUI_InstallDir" /> + <UIRef Id="$(var.CPACK_WIX_UI_REF)" /> </Product> </Wix> |