summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/if/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-28 15:13:24 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-28 15:35:32 (GMT)
commit7378792b4938d32c5eefc5bb485ecae1a7ec95fb (patch)
tree5fb61433b0cbd42a054ab9ad63b3c375e897a45f /Tests/RunCMake/if/RunCMakeTest.cmake
parent4ab10e063d8f640d9a3fa029fe9993e94f4096c3 (diff)
downloadCMake-7378792b4938d32c5eefc5bb485ecae1a7ec95fb.zip
CMake-7378792b4938d32c5eefc5bb485ecae1a7ec95fb.tar.gz
CMake-7378792b4938d32c5eefc5bb485ecae1a7ec95fb.tar.bz2
if: Add test for IS_DIRECTORY
Add a RunCMake.if test to cover if() command behavior. Start with a test for IS_DIRECTORY cases with an existing directory and a long path, both with a trailing slash.
Diffstat (limited to 'Tests/RunCMake/if/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/if/RunCMakeTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/if/RunCMakeTest.cmake b/Tests/RunCMake/if/RunCMakeTest.cmake
new file mode 100644
index 0000000..6b6b74b
--- /dev/null
+++ b/Tests/RunCMake/if/RunCMakeTest.cmake
@@ -0,0 +1,4 @@
+include(RunCMake)
+
+run_cmake(IsDirectory)
+run_cmake(IsDirectoryLong)