summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-03-14 16:26:32 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-03-14 16:26:32 (GMT)
commitf7c024df2a2ae6b8cf5ba127ee764a55f81f06e6 (patch)
tree7fabb1cfee77da3da9e0840eb55dee0e44f4a126
parent7a68698b6f2074ad8cf4cb29c042666ae6bb9063 (diff)
downloadCMake-f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6.zip
CMake-f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6.tar.gz
CMake-f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6.tar.bz2
ENH: added new test for out of dir source trees
-rw-r--r--Tests/OutOfSource/CMakeLists.txt3
-rw-r--r--Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt1
-rw-r--r--Tests/OutOfSource/OutOfSourceSubdir/simple.cxx4
-rw-r--r--Tests/OutOfSource/SubDir/CMakeLists.txt2
4 files changed, 10 insertions, 0 deletions
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)