[CMake] Globbing files in the current binary dir?

Christiaan Putter ceputter at googlemail.com
Sat Dec 8 16:14:59 EST 2007


Hi guys and girls,

I'd like to install some files generated during the build by Swig, *.py
files in the current bin dir.


FILE(GLOB pyimports "${CMAKE_CURRENT_BINARY_DIR}/*.py")
INSTALL(FILES ${pyimports}
        DESTINATION scripts)


The .py files are there after the build, but aren't found by the glob
command.  I'm assuming globbing takes place during the configure stage and
therefore won't find things before they're built...


At the moment I'm just passing them manually to INSTALL, which works.

Can someone tell me how to get around this or whether I'm doing something
wrong, please.

Y'all have a nice day.

Regards,

cputter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071208/4396c3a1/attachment.html


More information about the CMake mailing list