Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | 1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||
---|---|---|---|---|---|
2 | remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY) | 2 | remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY) | ||
3 | 3 | | |||
4 | include(ECMAddTests) | 4 | include(ECMAddTests) | ||
5 | 5 | | |||
6 | add_subdirectory(http) | 6 | add_subdirectory(http) | ||
7 | add_subdirectory(kcookiejar) | 7 | add_subdirectory(kcookiejar) | ||
8 | 8 | | |||
9 | find_package(Qt5Widgets REQUIRED) | 9 | find_package(Qt5Widgets REQUIRED) | ||
10 | 10 | | |||
11 | ########### unittests ############### | 11 | ########### unittests ############### | ||
12 | 12 | | |||
13 | find_package(Qt5Concurrent ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) | 13 | find_package(Qt5Concurrent ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) | ||
14 | 14 | | |||
15 | if(NOT EXCLUDE_DEPRECATED_BEFORE_AND_AT STREQUAL "CURRENT" AND | ||||
16 | EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.65.0) | ||||
17 | set(ktcpsockettest_SRC ktcpsockettest.cpp) | ||||
18 | endif() | ||||
19 | | ||||
15 | ecm_add_tests( | 20 | ecm_add_tests( | ||
16 | kacltest.cpp | 21 | kacltest.cpp | ||
17 | listdirtest.cpp | 22 | listdirtest.cpp | ||
18 | kmountpointtest.cpp | 23 | kmountpointtest.cpp | ||
19 | upurltest.cpp | 24 | upurltest.cpp | ||
20 | dataprotocoltest.cpp | 25 | dataprotocoltest.cpp | ||
21 | jobtest.cpp | 26 | jobtest.cpp | ||
22 | jobremotetest.cpp | 27 | jobremotetest.cpp | ||
23 | kfileitemtest.cpp | 28 | kfileitemtest.cpp | ||
24 | kprotocolinfotest.cpp | 29 | kprotocolinfotest.cpp | ||
25 | ktcpsockettest.cpp | 30 | ${ktcpsockettest_SRC} | ||
26 | globaltest.cpp | 31 | globaltest.cpp | ||
27 | mkpathjobtest.cpp | 32 | mkpathjobtest.cpp | ||
28 | threadtest.cpp | 33 | threadtest.cpp | ||
29 | udsentrytest.cpp | 34 | udsentrytest.cpp | ||
30 | udsentry_benchmark.cpp | 35 | udsentry_benchmark.cpp | ||
31 | kcoredirlister_benchmark.cpp | 36 | kcoredirlister_benchmark.cpp | ||
32 | deletejobtest.cpp | 37 | deletejobtest.cpp | ||
33 | urlutiltest.cpp | 38 | urlutiltest.cpp | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 78 | ecm_add_tests( | |||
78 | NAME_PREFIX "kiogui-" | 83 | NAME_PREFIX "kiogui-" | ||
79 | LINK_LIBRARIES KF5::KIOCore KF5::KIOGui Qt5::Test | 84 | LINK_LIBRARIES KF5::KIOCore KF5::KIOGui Qt5::Test | ||
80 | ) | 85 | ) | ||
81 | 86 | | |||
82 | target_link_libraries(favicontest Qt5::Concurrent) | 87 | target_link_libraries(favicontest Qt5::Concurrent) | ||
83 | endif() | 88 | endif() | ||
84 | 89 | | |||
85 | if (TARGET KF5::KIOWidgets) | 90 | if (TARGET KF5::KIOWidgets) | ||
91 | if(NOT EXCLUDE_DEPRECATED_BEFORE_AND_AT STREQUAL "CURRENT" AND | ||||
92 | EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.4.0) | ||||
93 | set(jobguitest_SRC jobguitest.cpp) | ||||
94 | endif() | ||||
95 | | ||||
86 | ecm_add_tests( | 96 | ecm_add_tests( | ||
87 | clipboardupdatertest.cpp | 97 | clipboardupdatertest.cpp | ||
88 | dropjobtest.cpp | 98 | dropjobtest.cpp | ||
89 | kdynamicjobtrackernowidgetstest.cpp | 99 | kdynamicjobtrackernowidgetstest.cpp | ||
90 | krununittest.cpp | 100 | krununittest.cpp | ||
91 | kdirlistertest.cpp | 101 | kdirlistertest.cpp | ||
92 | kdirmodeltest.cpp | 102 | kdirmodeltest.cpp | ||
93 | kfileitemactionstest.cpp | 103 | kfileitemactionstest.cpp | ||
94 | fileundomanagertest.cpp | 104 | fileundomanagertest.cpp | ||
95 | kurifiltertest.cpp | 105 | kurifiltertest.cpp | ||
96 | kurlcompletiontest.cpp | 106 | kurlcompletiontest.cpp | ||
97 | jobguitest.cpp | 107 | ${jobguitest_SRC} | ||
98 | pastetest.cpp | 108 | pastetest.cpp | ||
99 | accessmanagertest.cpp | 109 | accessmanagertest.cpp | ||
100 | kurifiltersearchprovideractionstest.cpp | 110 | kurifiltersearchprovideractionstest.cpp | ||
101 | NAME_PREFIX "kiowidgets-" | 111 | NAME_PREFIX "kiowidgets-" | ||
102 | LINK_LIBRARIES KF5::KIOCore KF5::KIOWidgets Qt5::Test Qt5::DBus | 112 | LINK_LIBRARIES KF5::KIOCore KF5::KIOWidgets Qt5::Test Qt5::DBus | ||
103 | ) | 113 | ) | ||
104 | set_target_properties(krununittest PROPERTIES COMPILE_FLAGS "-DCMAKE_INSTALL_FULL_LIBEXECDIR_KF5=\"\\\"${CMAKE_INSTALL_FULL_LIBEXECDIR_KF5}\\\"\"") | 114 | set_target_properties(krununittest PROPERTIES COMPILE_FLAGS "-DCMAKE_INSTALL_FULL_LIBEXECDIR_KF5=\"\\\"${CMAKE_INSTALL_FULL_LIBEXECDIR_KF5}\\\"\"") | ||
105 | 115 | | |||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |