diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/OutOfSource/CMakeLists.txt | 5 | ||||
-rw-r--r-- | Tests/OutOfSource/SubDir/CMakeLists.txt | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Tests/OutOfSource/CMakeLists.txt b/Tests/OutOfSource/CMakeLists.txt index 75b48b6..e6c4f97 100644 --- a/Tests/OutOfSource/CMakeLists.txt +++ b/Tests/OutOfSource/CMakeLists.txt @@ -1,3 +1,6 @@ # a simple test case PROJECT (OutOfSource) -SUBDIRS(SubDir) + +ADD_SUBDIRECTORY(SubDir) + +SET(KEN 1) diff --git a/Tests/OutOfSource/SubDir/CMakeLists.txt b/Tests/OutOfSource/SubDir/CMakeLists.txt index 905f2bc..13b8c88 100644 --- a/Tests/OutOfSource/SubDir/CMakeLists.txt +++ b/Tests/OutOfSource/SubDir/CMakeLists.txt @@ -1,2 +1,3 @@ # subdir to a sibling dir -SUBDIRS(${PROJECT_SOURCE_DIR}/OutOfSourceSubdir) +MESSAGE ("Ken is ${KEN}") +SUBDIRS(${PROJECT_SOURCE_DIR}/${KEN}OutOfSourceSubdir) |