summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-04 00:29:35 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-04 00:29:35 (GMT)
commit06846c4c07294ed460b0ebb2c775b385e2e6d9c9 (patch)
treeb7443a5dce61fc3b5084cc17e2ed7930cc9c738b /Tests
parenta2e136fd17b693765a4961220433bdf207930583 (diff)
downloadCMake-06846c4c07294ed460b0ebb2c775b385e2e6d9c9.zip
CMake-06846c4c07294ed460b0ebb2c775b385e2e6d9c9.tar.gz
CMake-06846c4c07294ed460b0ebb2c775b385e2e6d9c9.tar.bz2
ENH: Added PERMISSIONS option to the TARGETS mode of the INSTALL command.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/SimpleInstall/CMakeLists.txt5
-rw-r--r--Tests/SimpleInstallS2/CMakeLists.txt5
2 files changed, 8 insertions, 2 deletions
diff --git a/Tests/SimpleInstall/CMakeLists.txt b/Tests/SimpleInstall/CMakeLists.txt
index fc5c861..755d1a2 100644
--- a/Tests/SimpleInstall/CMakeLists.txt
+++ b/Tests/SimpleInstall/CMakeLists.txt
@@ -92,8 +92,11 @@ ELSE(STAGE2)
ADD_DEPENDENCIES(test2 test3)
ADD_DEPENDENCIES(test4 test2)
- INSTALL(TARGETS SimpleInstall test1 test2 test3 test4
+ INSTALL(TARGETS SimpleInstall test1 test2 test3
RUNTIME DESTINATION bin LIBRARY DESTINATION lib)
+ INSTALL(TARGETS test4
+ RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
+ LIBRARY DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE)
INSTALL(FILES lib1.h DESTINATION include/foo)
INSTALL(FILES lib2.h
DESTINATION include/foo
diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt
index fc5c861..755d1a2 100644
--- a/Tests/SimpleInstallS2/CMakeLists.txt
+++ b/Tests/SimpleInstallS2/CMakeLists.txt
@@ -92,8 +92,11 @@ ELSE(STAGE2)
ADD_DEPENDENCIES(test2 test3)
ADD_DEPENDENCIES(test4 test2)
- INSTALL(TARGETS SimpleInstall test1 test2 test3 test4
+ INSTALL(TARGETS SimpleInstall test1 test2 test3
RUNTIME DESTINATION bin LIBRARY DESTINATION lib)
+ INSTALL(TARGETS test4
+ RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
+ LIBRARY DESTINATION lib PERMISSIONS OWNER_READ OWNER_WRITE)
INSTALL(FILES lib1.h DESTINATION include/foo)
INSTALL(FILES lib2.h
DESTINATION include/foo