From a31ae5b2efa6d779838f6cc31d40ca19e4581c2b Mon Sep 17 00:00:00 2001 From: Godzil Date: Thu, 5 Mar 2020 15:09:26 +0000 Subject: [PATCH] Add download and copy of the earth texture map. --- tests/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index eed05c4..e79f2eb 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -91,6 +91,16 @@ target_sources(uvmap_aligncheckplane PRIVATE uvmap_aligncheckplane.cpp) 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 + ) +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) add_test(NAME Chapter05_Test COMMAND $) add_test(NAME Chapter06_Test COMMAND $)