Warning, /frameworks/kcontacts/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(ECMAddTests)
0002
0003 find_package(Qt6Test ${REQUIRED_QT_VERSION} CONFIG REQUIRED)
0004
0005 ########### next target ###############
0006
0007 add_executable(testroundtrip)
0008 target_sources(testroundtrip PRIVATE testroundtrip.cpp testroundtrip.qrc)
0009 add_test(NAME kcontacts-testroundtrip COMMAND testroundtrip)
0010 target_link_libraries(testroundtrip KF6Contacts Qt6::Test)
0011
0012 ecm_add_tests(birthdaytest.cpp
0013 addresseetest.cpp
0014 impptest.cpp
0015 emailtest.cpp
0016 addresstest.cpp
0017 geotest.cpp
0018 keytest.cpp
0019 phonenumbertest.cpp
0020 secrecytest.cpp
0021 soundtest.cpp
0022 timezonetest.cpp
0023 contactgrouptest.cpp
0024 vcarddragtest.cpp
0025 langtest.cpp gendertest.cpp
0026 calendarurltest.cpp
0027 ldifconvertertest.cpp
0028 relatedtest.cpp
0029 resourcelocatorurltest.cpp
0030 customidentifiertest.cpp
0031 vcardlinetest.cpp
0032 fieldgrouptest.cpp
0033 importexportvcardtest.cpp
0034 titletest.cpp
0035 nicknametest.cpp
0036 roletest.cpp
0037 orgtest.cpp
0038 datetimetest.cpp
0039 clientpidmaptest.cpp
0040 NAME_PREFIX "kcontacts-" LINK_LIBRARIES KF6Contacts Qt6::Test KF6::ConfigCore)
0041
0042 ecm_add_test(addressformattest.cpp ../src/kcontacts.qrc
0043 TEST_NAME addressformattest
0044 NAME_PREFIX "kcontacts-" LINK_LIBRARIES KF6Contacts KF6::I18nLocaleData KF6::ConfigCore Qt6::Test)
0045
0046 ecm_add_tests(picturetest.cpp
0047 NAME_PREFIX "kcontacts-" LINK_LIBRARIES KF6Contacts Qt6::Test KF6::ConfigCore Qt6::Gui)
0048
0049 # Benchmark, compiled, but not run automatically with ctest
0050 add_executable(vcardtool_benchmark vcardtool_benchmark.cpp)
0051 target_link_libraries(vcardtool_benchmark KF6Contacts Qt6::Test KF6::ConfigCore)