[CMake] Downloading something with CMake

Will Dicharry wdicharry at stellarscience.com
Fri Jul 10 13:28:43 EDT 2009


Eric Noulard wrote:
> Hi all,
>
> Is there any builtin downloading function in CMake or CTest?
> As far as I know CTest has buit-in curl capability
> so may be there is (or would be) a
>
> GET_FILE(<filename> <url>) macro that could be implemented?
>
> I want to automate (with CMake) the retrieval of third party file
> using http/https/ftp?
>
>   

Take a look at the file( DOWNLOAD ... ) command.  I think that should do 
what you want.

--Will

> Or should I use FindWget.cmake etc...
>
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3344 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090710/ae37a9dd/attachment.bin>


More information about the CMake mailing list