On 02/25/2012 03:16 AM, Sumit Kumar wrote: > Hello > > I would like to recursively copy folders/subfolders when I do a make install. > In addition, I would like to copy certain file patterns (typically *.h) files > that may be in these folders. I can do this for individual files (by doing a > glob / glob recurse). However, in doing this I lose the directory structure. > Any help will be appreciated. > > > Thanks and Regards > Sumit
INSTALL(DIRECTORY ...) with FILES_MATCHING/PATTERN/REGEX/EXCLUDE options. Regards, Michael -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake