summaryrefslogtreecommitdiffstats
path: root/Tests/SimpleInstallS2/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-28 13:22:34 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-28 13:22:34 (GMT)
commit0de464fe36ad0c42d4a51e76a7253f994d4f7b08 (patch)
treebd72d938c57b052696168ba22a00e483cd5b15b3 /Tests/SimpleInstallS2/CMakeLists.txt
parentb0d7f6999b0dac288206d17bf008d34c1d633ba9 (diff)
downloadCMake-0de464fe36ad0c42d4a51e76a7253f994d4f7b08.zip
CMake-0de464fe36ad0c42d4a51e76a7253f994d4f7b08.tar.gz
CMake-0de464fe36ad0c42d4a51e76a7253f994d4f7b08.tar.bz2
ENH: Add test for bz2 and check for compress
Diffstat (limited to 'Tests/SimpleInstallS2/CMakeLists.txt')
-rw-r--r--Tests/SimpleInstallS2/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt
index c2de5b1..08a2b01 100644
--- a/Tests/SimpleInstallS2/CMakeLists.txt
+++ b/Tests/SimpleInstallS2/CMakeLists.txt
@@ -177,6 +177,20 @@ IF(WIN32 AND NOT UNIX)
ENDIF(NOT NSIS_MAKENSIS)
ENDIF(WIN32 AND NOT UNIX)
+IF(UNIX AND NOT APPLE)
+ SET(CPACK_GENERATOR "TGZ;STGZ")
+ FIND_PROGRAM(found_compress
+ NAMES compress)
+ IF(found_compress)
+ SET(CPACK_GENERATOR "${CPACK_GENERATOR};TZ")
+ ENDIF(found_compress)
+ FIND_PROGRAM(found_bz2
+ NAMES bzip2)
+ IF(found_bz2)
+ SET(CPACK_GENERATOR "${CPACK_GENERATOR};TBZ2")
+ ENDIF(found_bz2)
+ENDIF(UNIX AND NOT APPLE)
+
SET(CPACK_PACKAGE_EXECUTABLES "SimpleInstall" "Simple Install")
SET(CMAKE_INSTALL_MFC_LIBRARIES 1)
INCLUDE(InstallRequiredSystemLibraries)