comparison ui/tests/CMakeLists.txt @ 220:e6c5c70a67b0

Add test for windowsstores
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 26 Mar 2014 20:21:55 +0100
parents 6c3a089d3265
children c05e126b0b9e
comparison
equal deleted inserted replaced
219:57bef180d560 220:e6c5c70a67b0
13 endif() 13 endif()
14 14
15 macro(add_m13_test _source _additional_sources) 15 macro(add_m13_test _source _additional_sources)
16 set(_test ${_source}) 16 set(_test ${_source})
17 get_filename_component(_name ${_source} NAME_WE) 17 get_filename_component(_name ${_source} NAME_WE)
18 add_executable(${_name} ${_test} ${_additional_sources}) 18 set(_test_sources_with_resources ${_test} ${_additional_sources})
19 qt5_add_resources(_test_sources_with_resources
20 ${CMAKE_CURRENT_SOURCE_DIR}/data/testdata.qrc)
21 add_executable(${_name} ${_test_sources_with_resources})
19 add_test(m13-${_name} ${_name}) 22 add_test(m13-${_name} ${_name})
20 target_link_libraries(${_name} Qt5::Test Qt5::Widgets 23 target_link_libraries(${_name} Qt5::Test Qt5::Widgets
21 m13_common 24 m13_common
22 ${POLARSSL_LIBRARIES} 25 ${POLARSSL_LIBRARIES}
23 ${EXTRA_STATIC_LIBS}) 26 ${EXTRA_STATIC_LIBS})
37 40
38 # Cinstprocess 41 # Cinstprocess
39 add_m13_test(cinstprocesstest.cpp "${CERTIFICATELIST_SOURCES}") 42 add_m13_test(cinstprocesstest.cpp "${CERTIFICATELIST_SOURCES}")
40 add_m13_test(commontest.cpp "") 43 add_m13_test(commontest.cpp "")
41 44
45 if (WIN32)
46 add_m13_test(windowsstoretest.cpp "${CERTIFICATELIST_SOURCES};${CMAKE_SOURCE_DIR}/cinst/windowsstore.c")
47 endif (WIN32)
48
42 #add_m13_test(${CMAKE_SOURCE_DIR}/ui/main.cpp "${M13UI_SOURCES}") 49 #add_m13_test(${CMAKE_SOURCE_DIR}/ui/main.cpp "${M13UI_SOURCES}")
43 50

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