Re: [CMake] Is there a better way to retrieve content from a remote zip file?

2016-04-28 Thread Craig Scott
You may find the technique described at the following link useful (also based on ExternalProject, but slightly different take on how it's used): https://crascit.com/2015/07/25/cmake-gtest/ On Fri, Apr 29, 2016 at 1:58 AM, Chuck Atkins wrote: > This looks well suited

Re: [CMake] Is there a better way to retrieve content from a remote zip file?

2016-04-28 Thread Chuck Atkins
This looks well suited to ExternalProject. Just give it an empty configure and build steps and then have the install step perform the copy: include(ExternalProject) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(3rdParty_SUBDIR x64) else() set(3rdParty_SUBDIR x86) endif() ExternalProject_Add(

[CMake] Is there a better way to retrieve content from a remote zip file?

2016-04-28 Thread Lee Butler
I am looking for a better way to do something than having a sequence of "if (NOT EXISTS)" statements. My package being built depends on some external libraries and headers, that are available in a zip file on an external website. So for example: zlib.h,zlib.dll and zlib.lib are (along with