2014-04-12 08:42:37 -04:00
|
|
|
#
|
|
|
|
# CMake script to fetch kvasd binary for the current platform
|
|
|
|
#
|
|
|
|
set (kvasd_NAME https://svn.code.sf.net/p/wsjt/wsjt/trunk/kvasd-binary/${SYSTEM_NAME}/kvasd${EXECUTABLE_SUFFIX})
|
|
|
|
message (STATUS "file: ${kvasd_NAME}")
|
|
|
|
if (APPLE)
|
|
|
|
set (__kvasd_md5sum 198dbdde1e4b04f9940f63731097ee35)
|
2014-04-12 08:53:59 -04:00
|
|
|
elseif (WIN32)
|
2014-04-12 08:42:37 -04:00
|
|
|
set (__kvasd_md5sum 7b16809e51126a01bd02aed44427510c)
|
2014-04-12 08:53:59 -04:00
|
|
|
elseif (UNIX)
|
2014-04-18 09:38:13 -04:00
|
|
|
set (__kvasd_md5sum 28a6f8ba2efc3df02af2a781bd3ab654)
|
2014-04-12 08:53:59 -04:00
|
|
|
endif ()
|
2014-04-12 08:42:37 -04:00
|
|
|
file (
|
|
|
|
DOWNLOAD ${kvasd_NAME} contrib/kvasd${EXECUTABLE_SUFFIX}
|
2014-10-02 16:46:57 -04:00
|
|
|
TIMEOUT 120
|
2014-04-12 08:42:37 -04:00
|
|
|
STATUS kvasd_STATUS
|
|
|
|
LOG kvasd_LOG
|
|
|
|
SHOW_PROGRESS
|
|
|
|
EXPECTED_MD5 ${__kvasd_md5sum}
|
|
|
|
)
|
|
|
|
list (GET kvasd_STATUS 0 kvasd_RC)
|
|
|
|
if (kvasd_RC)
|
|
|
|
message (WARNING "${kvasd_STATUS}")
|
|
|
|
message (FATAL_ERROR "${kvasd_LOG}")
|
|
|
|
endif (kvasd_RC)
|