From f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6 Mon Sep 17 00:00:00 2001
From: Ken Martin <ken.martin@kitware.com>
Date: Mon, 14 Mar 2005 11:26:32 -0500
Subject: ENH: added new test for out of dir source trees

---
 Tests/OutOfSource/CMakeLists.txt                   | 3 +++
 Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt | 1 +
 Tests/OutOfSource/OutOfSourceSubdir/simple.cxx     | 4 ++++
 Tests/OutOfSource/SubDir/CMakeLists.txt            | 2 ++
 4 files changed, 10 insertions(+)
 create mode 100644 Tests/OutOfSource/CMakeLists.txt
 create mode 100644 Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
 create mode 100644 Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
 create mode 100644 Tests/OutOfSource/SubDir/CMakeLists.txt

diff --git a/Tests/OutOfSource/CMakeLists.txt b/Tests/OutOfSource/CMakeLists.txt
new file mode 100644
index 0000000..75b48b6
--- /dev/null
+++ b/Tests/OutOfSource/CMakeLists.txt
@@ -0,0 +1,3 @@
+# a simple test case
+PROJECT (OutOfSource)
+SUBDIRS(SubDir)
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
new file mode 100644
index 0000000..15467c9
--- /dev/null
+++ b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
@@ -0,0 +1 @@
+ADD_EXECUTABLE (simple simple.cxx)
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
new file mode 100644
index 0000000..1482f27
--- /dev/null
+++ b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
@@ -0,0 +1,4 @@
+int main ()
+{
+  return 0;
+}
diff --git a/Tests/OutOfSource/SubDir/CMakeLists.txt b/Tests/OutOfSource/SubDir/CMakeLists.txt
new file mode 100644
index 0000000..905f2bc
--- /dev/null
+++ b/Tests/OutOfSource/SubDir/CMakeLists.txt
@@ -0,0 +1,2 @@
+# subdir to a sibling dir
+SUBDIRS(${PROJECT_SOURCE_DIR}/OutOfSourceSubdir)
-- 
cgit v0.12