2 MESSAGE(FATAL_ERROR "CPackZIP.cmake may only be used by CPack internally.")
3 ENDIF(CMAKE_BINARY_DIR)
5 FIND_PROGRAM(ZIP_EXECUTABLE wzzip PATHS "$ENV{ProgramFiles}/WinZip")
7 SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" -P \"<ARCHIVE>\" @<FILELIST>")
8 SET(CPACK_ZIP_NEED_QUOTES TRUE)
11 IF(NOT ZIP_EXECUTABLE)
12 FIND_PROGRAM(ZIP_EXECUTABLE 7z PATHS "$ENV{ProgramFiles}/7-Zip")
14 SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" a -tzip \"<ARCHIVE>\" @<FILELIST>")
15 SET(CPACK_ZIP_NEED_QUOTES TRUE)
17 ENDIF(NOT ZIP_EXECUTABLE)
19 IF(NOT ZIP_EXECUTABLE)
21 FIND_PROGRAM(ZIP_EXECUTABLE zip PATHS "${CYGWIN_INSTALL_PATH}/bin")
23 SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" -r \"<ARCHIVE>\" . -i@<FILELIST>")
24 SET(CPACK_ZIP_NEED_QUOTES FALSE)
26 ENDIF(NOT ZIP_EXECUTABLE)