summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-28 13:23:40 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-28 13:23:40 (GMT)
commit36d7f3990aa1341ffa7782bea6e3b3233a3581ff (patch)
treed5d304ae64852ed6790eedf05f38cceede60d93c /Tests
parent456c823ec010ce379cdc85ace65fe1ddbeea3236 (diff)
downloadCMake-36d7f3990aa1341ffa7782bea6e3b3233a3581ff.zip
CMake-36d7f3990aa1341ffa7782bea6e3b3233a3581ff.tar.gz
CMake-36d7f3990aa1341ffa7782bea6e3b3233a3581ff.tar.bz2
ENH: Add support for multiple build targets and start adding simple cpack tests
Diffstat (limited to 'Tests')
-rw-r--r--Tests/SimpleInstall/CMakeLists.txt9
-rw-r--r--Tests/SimpleInstallS2/CMakeLists.txt9
2 files changed, 18 insertions, 0 deletions
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt
index c712978..b4787c8 100644
--- a/Tests/SimpleInstall/CMakeLists.txt
+++ b/Tests/SimpleInstall/CMakeLists.txt
@@ -120,6 +120,14 @@ ELSE(CMAKE_CONFIGURATION_TYPES)
SET(SI_CONFIG)
ENDIF(CMAKE_CONFIGURATION_TYPES)
+# Dummy test of CPack
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Test of packaging with cpack")
+SET(CPACK_PACKAGE_VENDOR "Kitware")
+SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/foo.h")
+
+SET(CPACK_PACKAGE_EXECUTABLES "SimpleInstall" "Simple Install")
+INCLUDE(CPack)
+
ADD_CUSTOM_COMMAND(
TARGET ${install_target}
POST_BUILD
@@ -133,5 +141,6 @@ ADD_CUSTOM_COMMAND(
--build-makeprogram ${CMAKE_MAKE_PROGRAM}
--build-noclean
--build-target install
+ --build-target package
COMMENT "Install Project"
)
diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt
index c712978..b4787c8 100644
--- a/Tests/SimpleInstallS2/CMakeLists.txt
+++ b/Tests/SimpleInstallS2/CMakeLists.txt
@@ -120,6 +120,14 @@ ELSE(CMAKE_CONFIGURATION_TYPES)
SET(SI_CONFIG)
ENDIF(CMAKE_CONFIGURATION_TYPES)
+# Dummy test of CPack
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Test of packaging with cpack")
+SET(CPACK_PACKAGE_VENDOR "Kitware")
+SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/foo.h")
+
+SET(CPACK_PACKAGE_EXECUTABLES "SimpleInstall" "Simple Install")
+INCLUDE(CPack)
+
ADD_CUSTOM_COMMAND(
TARGET ${install_target}
POST_BUILD
@@ -133,5 +141,6 @@ ADD_CUSTOM_COMMAND(
--build-makeprogram ${CMAKE_MAKE_PROGRAM}
--build-noclean
--build-target install
+ --build-target package
COMMENT "Install Project"
)