I'm looking to install a directory as part of a custom target, but exclude all the Subversion .svn directories.
Both of the the following work, but run as part of the "make install" target, which I don't want: install( DIRECTORY ${source_dir} DESTINATION ${destination_dir} PATTERN .svn EXCLUDE ) file( COPY ${source_dir} DESTINATION ${destination_dir} PATTERN .svn EXCLUDE ) The following would work, if there was a way to exclude .svn dirs as part of the copy_directory: add_custom_command( OUTPUT ${destination_dir} COMMAND ${CMAKE_COMMAND} -E copy_directory ${source_dir} ${destination_dir} ) Any suggestions? Thanks very much! - Rick Gould r...@transpireinc.com _______________________________________________ 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