blob: 6aa2fe60af61544398dfb07d6da234c8361d544f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" MATCHES "^/")
set(slash /)
endif()
set(url "file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/input.png")
set(file ${CMAKE_CURRENT_BINARY_DIR}/output.png)
function(file_download)
file(DOWNLOAD "${url}"
${file} # leave unquoted
TIMEOUT 30
STATUS status
${ARGN}
)
message(STATUS "status='${status}'")
endfunction()
|