Mercurial > trustbridge
changeset 139:6232ea0c8438
Check for hiawatha executable before setting and testing downloader resources.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 24 Mar 2014 15:48:34 +0100 |
parents | 4691d9e3b1d3 |
children | 0e9a244e0ede |
files | ui/tests/CMakeLists.txt |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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}")