diff options
author | Brad King <brad.king@kitware.com> | 2013-01-29 20:12:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-30 15:05:07 (GMT) |
commit | 9e518a8169bae33c8a971c146e29b5af20114648 (patch) | |
tree | 76b9f313e37f45dbe1b6f5172bbe4fe9bbb815fa /Tests/RunCMake/ExternalData/Directory4.cmake | |
parent | 175ed02207ea5fe25aa7156acb2554d706611263 (diff) | |
download | CMake-9e518a8169bae33c8a971c146e29b5af20114648.zip CMake-9e518a8169bae33c8a971c146e29b5af20114648.tar.gz CMake-9e518a8169bae33c8a971c146e29b5af20114648.tar.bz2 |
ExternalData: Allow DATA{} syntax to reference directories
Use a trailing slash to reference a directory. Require that a list
of associated files be specified to select from within the directory.
One may simply use DATA{Dir/,REGEX:.*} to reference all files but
get a directory passed on the command line.
Diffstat (limited to 'Tests/RunCMake/ExternalData/Directory4.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalData/Directory4.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalData/Directory4.cmake b/Tests/RunCMake/ExternalData/Directory4.cmake new file mode 100644 index 0000000..7d3d638 --- /dev/null +++ b/Tests/RunCMake/ExternalData/Directory4.cmake @@ -0,0 +1,6 @@ +include(CTest) +include(ExternalData) +ExternalData_Add_Test(Data + NAME Test + COMMAND ${CMAKE_COMMAND} -E echo DATA{Directory4/,:} + ) |