[CMake] How to make a list of files that reside in an external directory.

Andrew Maclean andrew.amaclean at gmail.com
Wed Aug 6 21:12:40 EDT 2008


Thankyou very much for this.

Andrew


On Thu, Aug 7, 2008 at 5:13 AM, Brad King <brad.king at kitware.com> wrote:
> Andrew Maclean wrote:
>> 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.
>
> The file(GLOB ...) command can accept full paths:
>
>  file(GLOB MY_DLL "C:/Some Dir/Special DLLs/*.dll")
>
> -Brad
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
___________________________________________
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