comparison ui/tests/CMakeLists.txt @ 240:c05e126b0b9e

Fix downloadertest and factor out generating file input.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 28 Mar 2014 15:21:02 +0000
parents e6c5c70a67b0
children 3ae8b3ab3eab
comparison
equal deleted inserted replaced
239:6b4ad6ccc48e 240:c05e126b0b9e
27 endmacro() 27 endmacro()
28 28
29 # Add the current source dir to the definition 29 # Add the current source dir to the definition
30 # so that it can be used in file names in the tests. 30 # so that it can be used in file names in the tests.
31 add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}") 31 add_definitions(-DSOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
32 add_m13_test(certlistparsertest.cpp "${CERTIFICATELIST_SOURCES}") 32 add_m13_test(certlistparsertest.cpp "${CERTIFICATELIST_SOURCES};${CMAKE_CURRENT_SOURCE_DIR}/common.cpp")
33 33
34 # Downloader 34 # Downloader
35 if (HIAWATHA_EXECUTABLE) 35 if (HIAWATHA_EXECUTABLE)
36 set(DOWNLOADER_SOURCES_WITH_RESOURCES ${DOWNLOADER_SOURCES}) 36 set(DOWNLOADER_SOURCES_WITH_RESOURCES ${DOWNLOADER_SOURCES})
37 qt5_add_resources(DOWNLOADER_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES}) 37 qt5_add_resources(DOWNLOADER_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES})
38 add_m13_test(downloadertest.cpp "${DOWNLOADER_SOURCES_WITH_RESOURCES}") 38 add_m13_test(downloadertest.cpp "${DOWNLOADER_SOURCES_WITH_RESOURCES};${CMAKE_CURRENT_SOURCE_DIR}/common.cpp")
39 endif() 39 endif()
40 40
41 # Cinstprocess 41 # Cinstprocess
42 add_m13_test(cinstprocesstest.cpp "${CERTIFICATELIST_SOURCES}") 42 add_m13_test(cinstprocesstest.cpp "${CERTIFICATELIST_SOURCES}")
43 add_m13_test(commontest.cpp "") 43 add_m13_test(commontest.cpp "")

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