# HG changeset patch # User Raimund Renkert # Date 1395672514 -3600 # Node ID 6232ea0c8438dd43bb1a2cc00fd026f0225becfb # Parent 4691d9e3b1d3d2480cbc40b93d9130718fb29df1 Check for hiawatha executable before setting and testing downloader resources. diff -r 4691d9e3b1d3 -r 6232ea0c8438 ui/tests/CMakeLists.txt --- a/ui/tests/CMakeLists.txt Mon Mar 24 13:35:20 2014 +0100 +++ b/ui/tests/CMakeLists.txt Mon Mar 24 15:48:34 2014 +0100 @@ -28,9 +28,11 @@ add_m13_test(certlistparsertest.cpp "${CERTIFICATELIST_SOURCES}") # Downloader -set(DOWNLOADER_SOURCES_WITH_RESOURCES ${DOWNLOADER_SOURCES}) -qt5_add_resources(DOWNLOADER_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES}) -add_m13_test(downloadertest.cpp "${DOWNLOADER_SOURCES_WITH_RESOURCES}") +if (HIAWATHA_EXECUTABLE) + set(DOWNLOADER_SOURCES_WITH_RESOURCES ${DOWNLOADER_SOURCES}) + qt5_add_resources(DOWNLOADER_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES}) + add_m13_test(downloadertest.cpp "${DOWNLOADER_SOURCES_WITH_RESOURCES}") +endif() # Cinstprocess add_m13_test(cinstprocesstest.cpp "${CERTIFICATELIST_SOURCES}")