[CMake] How to make a list of files that reside in an external directory.
Andrew Maclean
andrew.amaclean at gmail.com
Mon Aug 4 01:50:38 EDT 2008
Say I have a project and when I build an installer, it needs a list of
dlls that reside in a directory that is not in the source or build
tree.
What I want to generate is a list of these dlls ready to copy to the
bin directory of my build.
E.g If I have a directory in "C:/Some Dir/Special DLLs" with dlls in
it called x.dll and y.dll I want to create a variable called say
MY_DLL = "C:/Some Dir/Special DLLs/x.dll;C:/Some Dir/Special
DLLs/y.dll"
Putting it succintly, I want to glob all files in some directory not
part of the cmake source or binary directories and create a variable
containing these files to be copied to the binary build location.
file(GLOB ... ) only seems to work on the current directory.
I am using the latest CMake.
Thanks in advance for any help
Andrew
--
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney 2006 NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________
More information about the CMake
mailing list