Warning, /pim/messagelib/templateparser/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: CC0-1.0 0002 # SPDX-FileCopyrightText: none 0003 include(ECMAddTests) 0004 0005 set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) 0006 add_definitions(-DMAIL_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data") 0007 0008 include ( ${CMAKE_SOURCE_DIR}/cmake/modules/kdepim_add_gpg_crypto_test.cmake ) 0009 # convenience macro to add qtest unit tests 0010 macro(add_templateparser_unittest _source) 0011 set(_test ${_source}) 0012 get_filename_component(_name ${_source} NAME_WE) 0013 add_executable( ${_name} ${_test} ${_name}.h) 0014 ecm_mark_as_test(templateparser-${_name}) 0015 target_link_libraries(${_name} 0016 KPim6::Libkleo 0017 KPim6::TemplateParser 0018 KPim6::MimeTreeParser 0019 Qt::Test 0020 KF6::KIOCore 0021 KPim6::Mime 0022 KPim6::IdentityManagementCore 0023 KF6::XmlGui 0024 KF6::IconThemes 0025 Qt::WebEngineWidgets 0026 ) 0027 add_gpg_crypto_test(${_name} templateparser-${_name}) 0028 # needed for the CI to run webengine-related tests 0029 # the CI runs as root, and webengine insists on disabling sandboxing in that case 0030 set_tests_properties(templateparser-${_name} PROPERTIES ENVIRONMENT "QTWEBENGINE_DISABLE_SANDBOX=1") 0031 0032 endmacro() 0033 0034 add_templateparser_unittest(customtemplatesmenutest.cpp) 0035 add_templateparser_unittest(templateextracttextfrommailtest.cpp) 0036 add_templateparser_unittest(templateextracthtmlelementfrommailtest.cpp) 0037 add_templateparser_unittest(templateparserjobtest.cpp) 0038 add_templateparser_unittest(templateparserextracthtmlinfotest.cpp) 0039 add_templateparser_unittest(templateparseremailaddressrequesterlineedittest.cpp) 0040 add_templateparser_unittest(templateparseremailaddressrequesterinterfacewidgettest.cpp) 0041 add_templateparser_unittest(templatesinsertcommandactiontest.cpp) 0042 add_templateparser_unittest(templatesinsertcommandpushbuttontest.cpp) 0043 add_templateparser_unittest(templateparserutiltest.cpp)