comparison ui/tests/CMakeLists.txt @ 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 16f37460b2e1
children 0e9a244e0ede
comparison
equal deleted inserted replaced
132:4691d9e3b1d3 139:6232ea0c8438
26 # so that it can be used in file names in the tests. 26 # so that it can be used in file names in the tests.
27 add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") 27 add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
28 add_m13_test(certlistparsertest.cpp "${CERTIFICATELIST_SOURCES}") 28 add_m13_test(certlistparsertest.cpp "${CERTIFICATELIST_SOURCES}")
29 29
30 # Downloader 30 # Downloader
31 set(DOWNLOADER_SOURCES_WITH_RESOURCES ${DOWNLOADER_SOURCES}) 31 if (HIAWATHA_EXECUTABLE)
32 qt5_add_resources(DOWNLOADER_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES}) 32 set(DOWNLOADER_SOURCES_WITH_RESOURCES ${DOWNLOADER_SOURCES})
33 add_m13_test(downloadertest.cpp "${DOWNLOADER_SOURCES_WITH_RESOURCES}") 33 qt5_add_resources(DOWNLOADER_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES})
34 add_m13_test(downloadertest.cpp "${DOWNLOADER_SOURCES_WITH_RESOURCES}")
35 endif()
34 36
35 # Cinstprocess 37 # Cinstprocess
36 add_m13_test(cinstprocesstest.cpp "${CERTIFICATELIST_SOURCES}") 38 add_m13_test(cinstprocesstest.cpp "${CERTIFICATELIST_SOURCES}")
37 39
38 #add_m13_test(${CMAKE_SOURCE_DIR}/ui/main.cpp "${M13UI_SOURCES}") 40 #add_m13_test(${CMAKE_SOURCE_DIR}/ui/main.cpp "${M13UI_SOURCES}")

http://wald.intevation.org/projects/trustbridge/