[CMake] How to exclude empty dirs from install

Olaf van der Spek olafvdspek at gmail.com
Thu Jul 22 10:41:10 EDT 2010


Hi,

install(DIRECTORY xbt DESTINATION include FILES_MATCHING PATTERN "*.h")
install(TARGETS xbt DESTINATION lib)

How do I exclude empty dirs, like .svn from being created?

Why is it necessary to specify DESTINATION lib? Can't it use a default?

Olaf


More information about the CMake mailing list