Re: [CMake] gathering directory names in cmake

2016-06-24 Thread Cfyz
> 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 "./*")

Re: [CMake] gathering directory names in cmake

2016-06-23 Thread Lee Butler
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

Re: [CMake] gathering directory names in cmake

2016-06-21 Thread Rashad Kanavath
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

[CMake] gathering directory names in cmake

2016-06-20 Thread Lee Butler
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