Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
1 | include(ECMAddTests) | 1 | include(ECMAddTests) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | find_package(Qt5Test CONFIG REQUIRED) | 3 | find_package(Qt5Test CONFIG REQUIRED) | ||
4 | 4 | | |||
5 | set(kgapitest_SRCS | 5 | set(kgapitest_SRCS | ||
6 | fakeaccountstorage.cpp | 6 | fakeaccountstorage.cpp | ||
7 | fakeauthwidget.cpp | 7 | fakeauthwidget.cpp | ||
8 | fakenetworkreply.cpp | 8 | fakenetworkreply.cpp | ||
9 | fakenetworkaccessmanager.cpp | 9 | fakenetworkaccessmanager.cpp | ||
10 | fakenetworkaccessmanagerfactory.cpp | 10 | fakenetworkaccessmanagerfactory.cpp | ||
11 | testutils.cpp | 11 | testutils.cpp | ||
12 | ) | 12 | ) | ||
13 | | ||||
14 | # Silence deprecation warnings for deprecated APIs tests. | ||||
15 | set_source_files_properties( | ||||
16 | drive/teamdrivecreatejobtest.cpp | ||||
17 | drive/teamdrivedeletejobtest.cpp | ||||
18 | drive/teamdrivefetchjobtest.cpp | ||||
19 | drive/teamdrivemodifyjobtest.cpp | ||||
20 | PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations | ||||
21 | ) | ||||
22 | | ||||
13 | add_library(kgapitest STATIC ${kgapitest_SRCS}) | 23 | add_library(kgapitest STATIC ${kgapitest_SRCS}) | ||
14 | target_link_libraries(kgapitest Qt5::Core Qt5::Network Qt5::Test KPimGAPICore) | 24 | target_link_libraries(kgapitest Qt5::Core Qt5::Network Qt5::Test KPimGAPICore) | ||
15 | 25 | | |||
16 | 26 | | |||
17 | 27 | | |||
18 | macro(add_libkgapi2_test _module _testname) | 28 | macro(add_libkgapi2_test _module _testname) | ||
19 | set(testSources ${_module}/${_testname}.cpp) | 29 | set(testSources ${_module}/${_testname}.cpp) | ||
20 | string(SUBSTRING ${_module} 0 1 moduleFirst) | 30 | string(SUBSTRING ${_module} 0 1 moduleFirst) | ||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
70 | add_libkgapi2_test(tasks tasklistfetchjobtest) | 80 | add_libkgapi2_test(tasks tasklistfetchjobtest) | ||
71 | add_libkgapi2_test(tasks tasklistmodifyjobtest) | 81 | add_libkgapi2_test(tasks tasklistmodifyjobtest) | ||
72 | 82 | | |||
73 | add_libkgapi2_test(drive aboutfetchjobtest) | 83 | add_libkgapi2_test(drive aboutfetchjobtest) | ||
74 | add_libkgapi2_test(drive changefetchjobtest) | 84 | add_libkgapi2_test(drive changefetchjobtest) | ||
75 | add_libkgapi2_test(drive filecopyjobtest) | 85 | add_libkgapi2_test(drive filecopyjobtest) | ||
76 | add_libkgapi2_test(drive filecreatejobtest) | 86 | add_libkgapi2_test(drive filecreatejobtest) | ||
77 | add_libkgapi2_test(drive filesearchquerytest) | 87 | add_libkgapi2_test(drive filesearchquerytest) | ||
88 | add_libkgapi2_test(drive drivescreatejobtest) | ||||
89 | add_libkgapi2_test(drive drivesdeletejobtest) | ||||
90 | add_libkgapi2_test(drive drivesmodifyjobtest) | ||||
91 | add_libkgapi2_test(drive driveshidejobtest) | ||||
92 | add_libkgapi2_test(drive drivesfetchjobtest) | ||||
93 | add_libkgapi2_test(drive drivessearchquerytest) | ||||
78 | add_libkgapi2_test(drive teamdrivecreatejobtest) | 94 | add_libkgapi2_test(drive teamdrivecreatejobtest) | ||
79 | add_libkgapi2_test(drive teamdrivedeletejobtest) | 95 | add_libkgapi2_test(drive teamdrivedeletejobtest) | ||
80 | add_libkgapi2_test(drive teamdrivemodifyjobtest) | 96 | add_libkgapi2_test(drive teamdrivemodifyjobtest) | ||
81 | add_libkgapi2_test(drive teamdrivefetchjobtest) | 97 | add_libkgapi2_test(drive teamdrivefetchjobtest) | ||
82 | add_libkgapi2_test(drive teamdrivesearchquerytest) | 98 | add_libkgapi2_test(drive teamdrivesearchquerytest) |