summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestSubdir/CMakeLists.txt
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-10-20 17:35:44 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-10-20 17:35:44 (GMT)
commit78174651b696a8e20ae55291a3b157bcab412408 (patch)
treefa7e3650c0b5c1bf35696a6d6a227cb2ce5733b7 /Tests/CTestTestSubdir/CMakeLists.txt
parentf2010871ba9802386cb63733faf6e1a3b762158b (diff)
downloadCMake-78174651b696a8e20ae55291a3b157bcab412408.zip
CMake-78174651b696a8e20ae55291a3b157bcab412408.tar.gz
CMake-78174651b696a8e20ae55291a3b157bcab412408.tar.bz2
Added a ctest add_subdirectory test which fails before my patch made earlier today.
Diffstat (limited to 'Tests/CTestTestSubdir/CMakeLists.txt')
-rw-r--r--Tests/CTestTestSubdir/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CTestTestSubdir/CMakeLists.txt b/Tests/CTestTestSubdir/CMakeLists.txt
new file mode 100644
index 0000000..f5a1fe2
--- /dev/null
+++ b/Tests/CTestTestSubdir/CMakeLists.txt
@@ -0,0 +1,11 @@
+cmake_minimum_required (VERSION 2.6)
+PROJECT(CTestTestSubdir)
+
+SET(DART_ROOT "" CACHE STRING "" FORCE)
+ENABLE_TESTING()
+INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
+
+GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
+SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
+
+ADD_SUBDIRECTORY(subdir)