> I have a source tree which contains multiple directories each of
> which has a subdirectory called "xyz". I want to create a target
> that creates a zip file with each of the xyz directories.
You can filter the file paths with a few CMake script lines:
file(GLOB_RECURSE FILES "./*")
Alas, this has no effect. Consider the following shell script:
-
#!/bin/sh
if [ -d attempt ] ; then rm -rf attempt ; fi
mkdir attempt
cd attempt
for d in src src/app src/plugins/one ; do
mkdir -p $d/xyz
touch $d/xyz/one.txt
On Mon, Jun 20, 2016 at 8:47 PM, Lee Butler wrote:
> I have a source tree which contains multiple directories each of which has
> a subdirectory called "xyz". I want to create a target that creates a zip
> file with each of the xyz directories. So if the source tree looks
I have a source tree which contains multiple directories each of which
has a subdirectory called "xyz". I want to create a target that creates
a zip file with each of the xyz directories. So if the source tree
looks like
src
src/xyz
src/application
src/application/xyz
src/plugins/one/xyz