[CMake] Problem with INSTALL(DIRECTORY ... PATTERN)

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Sep 30 12:01:37 EDT 2007


Hi,

It looks like PATTERN does not work:

install(DIRECTORY ${CMAKE_SOURCE_DIR}/Clucene
        DESTINATION include
        PATTERN "*.h"
)

--> all files are installed, no matter what extension the file has.
When I add some EXCLUDE patterns:

install(DIRECTORY ${CMAKE_SOURCE_DIR}/Clucene
        DESTINATION include
        PATTERN "*.cpp" EXCLUDE
        PATTERN "*.am" EXCLUDE
        PATTERN "*.in" EXCLUDE
        PATTERN "README" EXCLUDE
        PATTERN "*.v2" EXCLUDE
        PATTERN "*.txt" EXCLUDE
        PATTERN "*.h"
)

all files with the specified extensions are not installed - but that's
not a real solution... :)


Any ideas?
Christian


More information about the CMake mailing list