[CMake] Re: Install of pattern matched files
Rodolfo Lima
rodolfo at rodsoft.org
Fri Dec 28 16:43:52 EST 2007
Mike Jackson escreveu:
> INSTALL(DIRECTORY src/
> DESTINATION include/MXADataModel
> REGEX ".*\\.h$"
> )
>
> which I think should work. So what am I doing wrong?
I think that the regex must also match the directories that contain the
header files. If a directory doesn't match, its files aren't processed.
I overcame this issue using file(GLOB_RECURSE ...), which works quite
well, despite this solution not being the most direct.
Regards,
rod
More information about the CMake
mailing list