file(WRITE 1.txt 1)
file(WRITE 2.txt 2)
file(WRITE 3.txt 3)
file(WRITE common.txt common)
install(FILES 1.txt DESTINATION bin COMPONENT comp1)
install(FILES 2.txt DESTINATION bin COMPONENT comp2)
install(FILES 3.txt DESTINATION bin COMPONENT comp3)
install(FILES common.txt DESTINATION bin COMPONENT common)
set(CPACK_WIX_PRODUCT_GUID "7D48324A-B2EA-4B84-816C-456D593F672B")
set(CPACK_WIX_UPGRADE_GUID "EAE16B90-B822-4D90-B1DC-6F25754012FC")
set(CPACK_COMPONENT_COMP1_DEPENDS common)
set(CPACK_COMPONENT_COMP2_DEPENDS common)
set(CPACK_COMPONENT_COMMON_HIDDEN TRUE)
set(CPACK_COMPONENT_COMMON_DISABLED TRUE)
set(CPACK_GENERATOR WIX)
set(CPACK_COMPONENTS_ALL comp1 comp2 comp3 common)
include(CPack)