summaryrefslogtreecommitdiffstats
path: root/Tests/StringFileTest/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:03:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-21 21:03:19 (GMT)
commitd41f97a5e6fb47399cff87aa96979f6b7196a763 (patch)
treecbcbed2a7a5d08927088e5fc072dab25aa0af10a /Tests/StringFileTest/CMakeLists.txt
parent9dbf4438dcf2d08477b140edc0a15927377699d3 (diff)
downloadCMake-d41f97a5e6fb47399cff87aa96979f6b7196a763.zip
CMake-d41f97a5e6fb47399cff87aa96979f6b7196a763.tar.gz
CMake-d41f97a5e6fb47399cff87aa96979f6b7196a763.tar.bz2
ENH: Add relative tag and add test for relative tag
Diffstat (limited to 'Tests/StringFileTest/CMakeLists.txt')
-rw-r--r--Tests/StringFileTest/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt
index 2cbc785..044f271 100644
--- a/Tests/StringFileTest/CMakeLists.txt
+++ b/Tests/StringFileTest/CMakeLists.txt
@@ -91,9 +91,12 @@ SET(expr "${CMAKE_CURRENT_SOURCE_DIR}/[sS][!a-su-zA-Z0-9][^a-qs-zA-Z0-9]ing?ile*
MESSAGE("Glob expression is [${expr}].")
FILE(GLOB src_files "${expr}")
MESSAGE("Globbed files [${src_files}].")
-
ADD_EXECUTABLE(StringFileTest ${src_files})
+SET(expr "${CMAKE_CURRENT_SOURCE_DIR}/../*.cxx")
+FILE(GLOB_RECURSE rel_src_files RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/.." "${expr}")
+MESSAGE("Globbed files [${rel_src_files}].")
+
# Test FOREACH range
MESSAGE("Cheack if FOREACH with RANGE works")
MACRO(TEST_RANGE ARGS CHECK)