[CMake] File globing and directory source tree
Filipe Sousa
natros at gmail.com
Tue Feb 27 14:07:57 EST 2007
Claudiu-Daniel wrote:
> Is FILE( GLOB .... ) and FILE( GLOB_RECURSE ...) only working for the
> directories under the [PROJECT_NAME]_SOURCE_DIR or
> [PROJECT_NAME]_BINARY_DIR?
you must be doing something wrong.
with this i can get all .so files from /usr/lib
FILE(GLOB files "/usr/lib/*.so")
MESSAGE(STATUS ${files})
> I wanted to pass a dir from outside so i can copy some dlls with the
> install command, and apparently globing doesn't work
>
> Any suggestions?
>
> Regards,
> Claudiu
>
More information about the CMake
mailing list