[CMake] Re: Install of pattern matched files

Mike Jackson imikejackson at gmail.com
Fri Dec 28 16:55:31 EST 2007


On Dec 28, 2007, at 4:51 PM, Brandon Van Every wrote:

> On Dec 28, 2007 4:33 PM, Mike Jackson <imikejackson at gmail.com> 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
>

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, headers,  
sources.. everything.

Mike


More information about the CMake mailing list