diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-03-14 16:26:32 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-03-14 16:26:32 (GMT) |
commit | f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6 (patch) | |
tree | 7fabb1cfee77da3da9e0840eb55dee0e44f4a126 /Tests | |
parent | 7a68698b6f2074ad8cf4cb29c042666ae6bb9063 (diff) | |
download | CMake-f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6.zip CMake-f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6.tar.gz CMake-f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6.tar.bz2 |
ENH: added new test for out of dir source trees
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/OutOfSource/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/simple.cxx | 4 | ||||
-rw-r--r-- | Tests/OutOfSource/SubDir/CMakeLists.txt | 2 |
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) |