diff options
author | Brad King <brad.king@kitware.com> | 2003-07-23 13:10:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-07-23 13:10:39 (GMT) |
commit | d4289ee2a98e616a6f4d50e21f05bedd9d83da63 (patch) | |
tree | d425d7f8d5bbc2a4fbb701863a8edc51a03c48eb /Tests/StringFileTest/CMakeLists.txt | |
parent | 0662fefca069d5e8bdaf26dfc50329cf0499d119 (diff) | |
download | CMake-d4289ee2a98e616a6f4d50e21f05bedd9d83da63.zip CMake-d4289ee2a98e616a6f4d50e21f05bedd9d83da63.tar.gz CMake-d4289ee2a98e616a6f4d50e21f05bedd9d83da63.tar.bz2 |
ENH: Added more verbose output of what globbing results.
Diffstat (limited to 'Tests/StringFileTest/CMakeLists.txt')
-rw-r--r-- | Tests/StringFileTest/CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index 03b00c5..298e298 100644 --- a/Tests/StringFileTest/CMakeLists.txt +++ b/Tests/StringFileTest/CMakeLists.txt @@ -23,9 +23,9 @@ STRING(TOLOWER "CMake" tlvar) # Escaping test SET(var "\\ \" \ \t \n \r \# \( \) \0") -MESSAGE(STATUS "Output: [${var}]") +MESSAGE("Output: [${var}]") SET(var \\ \" \ \t \n \r \# \( \) \0) -MESSAGE(STATUS "Output: [${var}]") +MESSAGE("Output: [${var}]") # Make directories test FILE(MAKE_DIRECTORY @@ -67,7 +67,10 @@ FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h" "${outfile}") # Test file glob FILE(GLOB_RECURSE src_files "${CMAKE_CURRENT_SOURCE_DIR}/*") -MESSAGE(STATUS "Files in ${CMAKE_CURRENT_SOURCE_DIR} are ${src_files}") -FILE(GLOB src_files "${CMAKE_CURRENT_SOURCE_DIR}/[sS][!a-su-zA-Z0-9][^a-qs-zA-Z0-9]ing?ile*.cxx") +MESSAGE("Files in ${CMAKE_CURRENT_SOURCE_DIR} are ${src_files}") +SET(expr "${CMAKE_CURRENT_SOURCE_DIR}/[sS][!a-su-zA-Z0-9][^a-qs-zA-Z0-9]ing?ile*.cxx") +MESSAGE("Glob expression is [${expr}].") +FILE(GLOB src_files "${expr}") +MESSAGE("Globbed files [${src_files}].") ADD_EXECUTABLE(StringFileTest ${src_files}) |