[CMake] Re: Install of pattern matched files

2007-12-28 Thread Rodolfo Lima
Brandon Van Every escreveu: Too cumbersome? Surely you jest. What's a long-winded list of patterns in terms of your development time? Two minutes tops? Oh well... thanks for teaching me another word: jest, and I'm not being ironic. Back to business... imagine the following use case: a

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread David Cole
Can't you use PATTERN without the EXCLUDE to achieve this? On 12/28/07, Rodolfo Lima [EMAIL PROTECTED] wrote: Brandon Van Every escreveu: Too cumbersome? Surely you jest. What's a long-winded list of patterns in terms of your development time? Two minutes tops? Oh well... thanks for

[CMake] Re: Install of pattern matched files

2007-12-28 Thread Rodolfo Lima
David Cole escreveu: Can't you use PATTERN without the EXCLUDE to achieve this? Unfortunately no. Documentation doesn't say anything about it and I've already tried without success. Thanks, rod ___ CMake mailing list CMake@cmake.org

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Mike Jackson
Just adding to this, I thought I had it figured out also but I can't do this either. My project is laid out like the following: Project CMakeLists.txt src lib test and I would like to install all the header files from Project/src/ lib/*.h into

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Brandon Van Every
On Dec 28, 2007 1:33 PM, Rodolfo Lima [EMAIL PROTECTED] wrote: Brandon Van Every escreveu: Too cumbersome? Surely you jest. What's a long-winded list of patterns in terms of your development time? Two minutes tops? Oh well... thanks for teaching me another word: jest, and I'm not being

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Brandon Van Every
On Dec 28, 2007 2:51 PM, Rodolfo Lima [EMAIL PROTECTED] wrote: David Cole escreveu: Can't you use PATTERN without the EXCLUDE to achieve this? Unfortunately no. Documentation doesn't say anything about it What version of CMake are you using? CMake 2.4.7 documentation says plenty about this.

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Brandon Van Every
On Dec 28, 2007 4:38 PM, Brandon Van Every [EMAIL PROTECTED] wrote: On Dec 28, 2007 2:51 PM, Rodolfo Lima [EMAIL PROTECTED] wrote: David Cole escreveu: Can't you use PATTERN without the EXCLUDE to achieve this? Unfortunately no. Documentation doesn't say anything about it What version

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Brandon Van Every
On Dec 28, 2007 4:33 PM, Mike Jackson [EMAIL PROTECTED] wrote: INSTALL(DIRECTORY src/ DESTINATION include/MXADataModel REGEX .*\\.h$ ) which I think should work. So what am I doing wrong? The regex is correct. What happens if you use src instead of src/ ? Cheers, Brandon Van Every

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Mike Jackson
On Dec 28, 2007, at 4:51 PM, Brandon Van Every wrote: On Dec 28, 2007 4:33 PM, Mike Jackson [EMAIL PROTECTED] wrote: INSTALL(DIRECTORY src/ DESTINATION include/MXADataModel REGEX .*\\.h$ ) which I think should work. So what am I doing wrong? The regex is correct. What happens if you

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Mike Jackson
On Dec 28, 2007, at 4:51 PM, Brandon Van Every wrote: On Dec 28, 2007 4:33 PM, Mike Jackson [EMAIL PROTECTED] wrote: INSTALL(DIRECTORY src/ DESTINATION include/MXADataModel REGEX .*\\.h$ ) which I think should work. So what am I doing wrong? The regex is correct. What happens if you

[CMake] Re: Install of pattern matched files

2007-12-28 Thread Brandon Van Every
On Dec 28, 2007 4:55 PM, Mike Jackson [EMAIL PROTECTED] wrote: I used the following: INSTALL(DIRECTORY src DESTINATION include/MXADataModel REGEX .*\\.h$ ) and I get EVERY file located in the src directory, including all subdirectories. By all files I mean EVERYTHING. CVS files,

[CMake] Re: Install of pattern matched files

2007-12-28 Thread Rodolfo Lima
Mike Jackson escreveu: INSTALL(DIRECTORY src/ DESTINATION include/MXADataModel REGEX .*\\.h$ ) which I think should work. So what am I doing wrong? I think that the regex must also match the directories that contain the header files. If a directory doesn't match, its files aren't

[CMake] Re: Install of pattern matched files

2007-12-28 Thread Rodolfo Lima
Brandon Van Every escreveu: Do the REGEX and/or REGEX ... EXCLUDE signatures work? If so, then this is a low priority feature request. A PATTERN spares the programmer from having to learn how regexes work, but specifying these kinds of inclusions and exclusions with regexes is trivial.

[CMake] Re: Install of pattern matched files

2007-12-28 Thread Rodolfo Lima
Brandon Van Every escreveu: What version of CMake are you using? CMake 2.4.7 documentation says plenty about this. INCLUDE(DIRECTORY ... PATTERN blah ...) should work fine without an EXCLUDE I think you've meant INSTALL(...). Documentation says: The PATTERN and REGEX options specify a

Re: [CMake] Re: Install of pattern matched files

2007-12-28 Thread Brandon Van Every
On Dec 28, 2007 4:54 PM, Rodolfo Lima [EMAIL PROTECTED] wrote: So, pattern/regex are only used to specify which files you want to exclude or set permissions. The docs do not say that. [PERMISSIONS permissions ...] are optional. Nothing is said about only allowing matching files to be