Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
Show All 27 Lines | |||||
28 | # we want to test the deprecated API without a (useless) warning | 28 | # we want to test the deprecated API without a (useless) warning | ||
29 | target_compile_definitions(kplugininfotest PRIVATE KSERVICE_DEPRECATED=) | 29 | target_compile_definitions(kplugininfotest PRIVATE KSERVICE_DEPRECATED=) | ||
30 | 30 | | |||
31 | # the test plays with the timestamp of ~/.qttest/share/kservicetypes5, and with the ksycoca file, other tests can collide | 31 | # the test plays with the timestamp of ~/.qttest/share/kservicetypes5, and with the ksycoca file, other tests can collide | ||
32 | set_tests_properties(ksycocatest PROPERTIES RUN_SERIAL TRUE) | 32 | set_tests_properties(ksycocatest PROPERTIES RUN_SERIAL TRUE) | ||
33 | # KServiceTest::testAllServices can fail if any service is deleted while the test runs | 33 | # KServiceTest::testAllServices can fail if any service is deleted while the test runs | ||
34 | set_tests_properties(kservicetest PROPERTIES RUN_SERIAL TRUE) | 34 | set_tests_properties(kservicetest PROPERTIES RUN_SERIAL TRUE) | ||
35 | 35 | | |||
36 | target_sources(kservicetest PUBLIC | ||||
37 | ${CMAKE_CURRENT_SOURCE_DIR}/../src/services/ktraderparsetree.cpp | ||||
38 | ) | ||||
36 | 39 | | |||
37 | add_library(fakeplugin MODULE nsaplugin.cpp) | 40 | add_library(fakeplugin MODULE nsaplugin.cpp) | ||
38 | ecm_mark_as_test(fakeplugin) | 41 | ecm_mark_as_test(fakeplugin) | ||
39 | target_link_libraries(fakeplugin KF5::Service) | 42 | target_link_libraries(fakeplugin KF5::Service) | ||
40 | 43 | | |||
41 | 44 | | |||
42 | # generate new-style and old-style JSON from the .desktop file | 45 | # generate new-style and old-style JSON from the .desktop file | ||
43 | file(COPY fakeplugin.desktop DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) | 46 | file(COPY fakeplugin.desktop DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) | ||
Show All 15 Lines |