diff --git a/Tests/OutOfSource/CMakeLists.txt b/Tests/OutOfSource/CMakeLists.txt new file mode 100644 index 0000000000..75b48b665c --- /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 0000000000..15467c9cec --- /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 0000000000..1482f27e53 --- /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 0000000000..905f2bccb8 --- /dev/null +++ b/Tests/OutOfSource/SubDir/CMakeLists.txt @@ -0,0 +1,2 @@ +# subdir to a sibling dir +SUBDIRS(${PROJECT_SOURCE_DIR}/OutOfSourceSubdir)