summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-16 18:59:51 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-18 12:59:24 (GMT)
commit5f30f1754ac9a701cbd311bab86250dd237d86fd (patch)
treefffb8200251e5ecf6eaa1e7113ae0971a1a9d3c4 /Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
parent1199ebf1c53f7f591e412617afdaaf4ccd5bc0ff (diff)
downloadCMake-5f30f1754ac9a701cbd311bab86250dd237d86fd.zip
CMake-5f30f1754ac9a701cbd311bab86250dd237d86fd.tar.gz
CMake-5f30f1754ac9a701cbd311bab86250dd237d86fd.tar.bz2
GNUInstallDirs: Add test cases
Add a RunCMake.GNUInstallDirs test with cases covering various install prefixes. Hard-code the architecture information. Tolerate all platform-specific LIBDIR values. Currently the root prefix is not handled well, but verify the current behavior in the test anyway. This can be addressed with a future change. Inspired-by: Alex Turbov <i.zaufi@gmail.com>
Diffstat (limited to 'Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
new file mode 100644
index 0000000..f88569a
--- /dev/null
+++ b/Tests/RunCMake/GNUInstallDirs/RunCMakeTest.cmake
@@ -0,0 +1,6 @@
+include(RunCMake)
+
+run_cmake(Opt)
+run_cmake(Root)
+run_cmake(Usr)
+run_cmake(UsrLocal)