If labels are found on the tests, then print a time summary for all the tests run...
[cmake.git] / Modules / CPackZIP.cmake
blob4a658569400d27897dd8da64359cfc66854e70d1
1 IF(CMAKE_BINARY_DIR)
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")
6 IF(ZIP_EXECUTABLE)
7   SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" -P \"<ARCHIVE>\" @<FILELIST>")
8   SET(CPACK_ZIP_NEED_QUOTES TRUE)
9 ENDIF(ZIP_EXECUTABLE)
11 IF(NOT ZIP_EXECUTABLE)
12   FIND_PROGRAM(ZIP_EXECUTABLE 7z PATHS "$ENV{ProgramFiles}/7-Zip") 
13   IF(ZIP_EXECUTABLE)
14     SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" a -tzip \"<ARCHIVE>\" @<FILELIST>")
15   SET(CPACK_ZIP_NEED_QUOTES TRUE)
16   ENDIF(ZIP_EXECUTABLE)
17 ENDIF(NOT ZIP_EXECUTABLE)
19 IF(NOT ZIP_EXECUTABLE)
20   FIND_PACKAGE(Cygwin)
21   FIND_PROGRAM(ZIP_EXECUTABLE zip PATHS "${CYGWIN_INSTALL_PATH}/bin")
22   IF(ZIP_EXECUTABLE)
23     SET(CPACK_ZIP_COMMAND "\"${ZIP_EXECUTABLE}\" -r \"<ARCHIVE>\" . -i@<FILELIST>")
24     SET(CPACK_ZIP_NEED_QUOTES FALSE)
25   ENDIF(ZIP_EXECUTABLE)
26 ENDIF(NOT ZIP_EXECUTABLE)