summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-14 13:15:13 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-14 13:15:13 (GMT)
commit274535d36642e5615a3b8b1d098396759a9e09f9 (patch)
treefdce84aed2f10ca0b68447fba707708dc5d11ad7 /Source/cmFileCommand.h
parent2910c30dd5b0042f476110d63e9c300b4e2feb0d (diff)
downloadCMake-274535d36642e5615a3b8b1d098396759a9e09f9.zip
CMake-274535d36642e5615a3b8b1d098396759a9e09f9.tar.gz
CMake-274535d36642e5615a3b8b1d098396759a9e09f9.tar.bz2
ENH: Recurse subdirectories
Diffstat (limited to 'Source/cmFileCommand.h')
-rw-r--r--Source/cmFileCommand.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h
index 7cfa3e7..0f02239 100644
--- a/Source/cmFileCommand.h
+++ b/Source/cmFileCommand.h
@@ -70,6 +70,7 @@ public:
" FILE(APPEND filename \"message to write\"... )\n"
" FILE(READ filename variable)\n"
" FILE(GLOB variable [globbing expressions]...)\n"
+ " FILE(GLOB_RECURSE variable [globbing expressions]...)\n"
"WRITE will write a message into a file called 'filename'. It "
"overwrites the file if it already exists, and creates the file "
"if it does not exists.\n"
@@ -84,6 +85,11 @@ public:
" *.cxx - match all files with extension cxx\n"
" *.vt? - match all files with extension vta, vtb, ... vtz\n"
" f[3-5].txt - match files f3.txt, f4.txt, f5.txt\n"
+ "GLOB_RECURSE will generate similar list as the regular GLOB, except "
+ "it will traverse all the subdirectories of the matched directory and "
+ "match the files.\n"
+ "Example of recursive globbing:\n"
+ " /dir/*.py - match all python files /dir and subdirectories\n"
"MAKE_DIRECTORY will create a directory at the specified location";
}
@@ -92,7 +98,7 @@ public:
protected:
bool HandleWriteCommand(std::vector<std::string> const& args, bool append);
bool HandleReadCommand(std::vector<std::string> const& args);
- bool HandleGlobCommand(std::vector<std::string> const& args);
+ bool HandleGlobCommand(std::vector<std::string> const& args, bool recurse);
bool HandleMakeDirectoryCommand(std::vector<std::string> const& args);
};