summaryrefslogtreecommitdiffstats
path: root/Tests/SimpleInstallS2
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-10-12 17:30:00 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-10-12 17:30:00 (GMT)
commitdf1ff57498fb049bd5fc00efe5b1f3f82deb6a44 (patch)
tree45c62b2d3d35542f3fa4b3a41484dc3b4baec30b /Tests/SimpleInstallS2
parentf9dc5b5553c5292dbffacc2b37a4f874af7d7275 (diff)
downloadCMake-df1ff57498fb049bd5fc00efe5b1f3f82deb6a44.zip
CMake-df1ff57498fb049bd5fc00efe5b1f3f82deb6a44.tar.gz
CMake-df1ff57498fb049bd5fc00efe5b1f3f82deb6a44.tar.bz2
ENH: Several CPack fixes. First, allow user to set CMAKE_MODULE_PATH for CPack; make SetOptionIfNotSet more robust to handle empty options; do test TGZ, STGZ, and TZ, Add handling (and test) of Install Script; set environment variable CMAKE_INSTALL_PREFIX
Diffstat (limited to 'Tests/SimpleInstallS2')
-rw-r--r--Tests/SimpleInstallS2/PackageScript.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/SimpleInstallS2/PackageScript.cmake b/Tests/SimpleInstallS2/PackageScript.cmake
new file mode 100644
index 0000000..3567a2f
--- /dev/null
+++ b/Tests/SimpleInstallS2/PackageScript.cmake
@@ -0,0 +1,10 @@
+MESSAGE("This is packaging script")
+MESSAGE("It writes a file with all variables available in ${CMAKE_INSTALL_PREFIX}/AllVariables.txt")
+
+FILE(WRITE ${CMAKE_INSTALL_PREFIX}/AllVariables.txt "")
+GET_CMAKE_PROPERTY(res VARIABLES)
+FOREACH(var ${res})
+ FILE(APPEND ${CMAKE_INSTALL_PREFIX}/AllVariables.txt
+ "${var} \"${${var}}\"\n")
+ENDFOREACH(var ${res})
+