[CMake] copy a folder and subfolders with the INSTALL() command
Michael Wild
themiwi at gmail.com
Mon Aug 22 11:00:30 EDT 2011
On Mon 22 Aug 2011 04:44:35 PM CEST, Julien Dardenne wrote:
> Hi,
>
> I try to copy when installing the headers of my project.
> But I can't copy them, keeping the tree.
> Is it possible to keep the tree with the install() command ?
>
> Thanks
Try the install(DIRECTORY ...) signature. If there are other files
floating around which you don't want to install, use PATTERN (or REGEX)
with the EXCLUDE option. If you want positive matching instead, use
FILES_MATCHING with PATTERN or REGEX.
Michael
More information about the CMake
mailing list