From 90e79576a25d8d0677f3879aa8bd5ab2f9643886 Mon Sep 17 00:00:00 2001 From: Godzil Date: Thu, 5 Mar 2020 15:11:34 +0000 Subject: [PATCH] Correct the MD5 sum --- tests/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index e79f2eb..34b7731 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -93,14 +93,12 @@ add_executable(uvmap_earth) target_sources(uvmap_earth PRIVATE uvmap_earth.cpp) file(DOWNLOAD http://planetpixelemporium.com/download/download.php?earthmap1k.jpg - ${CMAKE_SOURCE_DIR}/external/earthmap1k.png - EXPECTED_HASH MD5=5f94e9ab9d7f753b2f6185814640f73d + ${CMAKE_SOURCE_DIR}/external/earthmap1k.jpg + EXPECTED_HASH MD5=49c3b412cfa448ec819412fb3ca089d2 ) add_custom_command( TARGET uvmap_earth POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_SOURCE_DIR}/external/earthmap1k.png - ${CMAKE_CURRENT_BINARY_DIR}/earthmap1k.png) + COMMAND convert ${CMAKE_SOURCE_DIR}/external/earthmap1k.jpg ${CMAKE_CURRENT_BINARY_DIR}/earthmap1k.png) add_test(NAME Chapter05_Test COMMAND $) add_test(NAME Chapter06_Test COMMAND $)