diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-12-16 21:30:11 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2013-12-17 13:14:42 (GMT) |
commit | 8632233a2fc0e27106977a820b6b439e72b45383 (patch) | |
tree | a36fbcaf798523e37ac538ea29480b4684bd4798 /Tests | |
parent | b4fdbba55ad857a803a0d2e6c1f0b2bff10f4b51 (diff) | |
download | CMake-8632233a2fc0e27106977a820b6b439e72b45383.zip CMake-8632233a2fc0e27106977a820b6b439e72b45383.tar.gz CMake-8632233a2fc0e27106977a820b6b439e72b45383.tar.bz2 |
CPackWiX: allow customization of generated WiX sources
Added a new variable CPACK_WIX_PATCH_FILE that users can point at an
XML patch file. Fragments defined within the patch file will be inserted
at supported insertion points (currently Component, File and Directory).
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CPackWiXGenerator/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/CPackWiXGenerator/patch.xml | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CPackWiXGenerator/CMakeLists.txt b/Tests/CPackWiXGenerator/CMakeLists.txt index ecfecdb..0b06045 100644 --- a/Tests/CPackWiXGenerator/CMakeLists.txt +++ b/Tests/CPackWiXGenerator/CMakeLists.txt @@ -49,6 +49,8 @@ set(CPACK_PACKAGE_EXECUTABLES "my-other-app" "Second CPack WiX Test" ) +set(CPACK_WIX_PATCH_FILE "${CMAKE_CURRENT_SOURCE_DIR}/patch.xml") + include(CPack) cpack_add_install_type(Full DISPLAY_NAME "Everything") diff --git a/Tests/CPackWiXGenerator/patch.xml b/Tests/CPackWiXGenerator/patch.xml new file mode 100644 index 0000000..13c392d --- /dev/null +++ b/Tests/CPackWiXGenerator/patch.xml @@ -0,0 +1,7 @@ +<CPackWiXPatch> + <CPackWiXFragment Id="CM_CP_applications.bin.my_libapp.exe"> + <Environment Id="MyEnvironment" Action="set" + Name="CPackWiXGeneratorTest" + Value="CPackWiXGeneratorTest"/> + </CPackWiXFragment> +</CPackWiXPatch> |