[CMake] INSTALL regexp
Brad King
brad.king at kitware.com
Mon Feb 27 09:47:36 EST 2006
Filipe Sousa wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> If INSTALL_FILES is superseded by INSTALL, what's the equivalent of
> INSTALL_FILES(/include ".*\\.h$") ?
>
> I tried INSTALL(FILES ".*\\.h$" DESTINATION include) but does not work.
Read the rest of the INSTALL_FILES documentation's first paragraph. It
says "The regexp form can be expressed more clearly using the GLOB form
of the FILE command."
Something like this should work:
FILE(GLOB MYHEADERS *.h)
INSTALL(FILES ${MYHEADERS} DESTINATION include)
-Brad
More information about the CMake
mailing list