Add download and copy of the earth texture map.

This commit is contained in:
Godzil
2020-03-05 15:09:26 +00:00
parent 2ebc177d9d
commit a31ae5b2ef

View File

@@ -91,6 +91,16 @@ target_sources(uvmap_aligncheckplane PRIVATE uvmap_aligncheckplane.cpp)
add_executable(uvmap_earth) add_executable(uvmap_earth)
target_sources(uvmap_earth PRIVATE uvmap_earth.cpp) 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 $<TARGET_FILE:ch5_test>) add_test(NAME Chapter05_Test COMMAND $<TARGET_FILE:ch5_test>)
add_test(NAME Chapter06_Test COMMAND $<TARGET_FILE:ch6_test>) add_test(NAME Chapter06_Test COMMAND $<TARGET_FILE:ch6_test>)