Warning, /frameworks/kservice/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 if(NOT EXCLUDE_DEPRECATED_BEFORE_AND_AT STREQUAL "CURRENT" AND
0002    EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.82.0)
0003     add_subdirectory(pluginlocator)
0004 endif()
0005 
0006 include(ECMMarkAsTest)
0007 
0008 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test)
0009 
0010 macro(kservice_executable_tests)
0011   foreach(_testname ${ARGN})
0012     add_executable(${_testname} ${_testname}.cpp)
0013     target_link_libraries(${_testname} KF5::Service)
0014     ecm_mark_as_test(${_testname})
0015   endforeach(_testname)
0016 endmacro()
0017 
0018 kservice_executable_tests(
0019   kservicegroup_dumper
0020   findservice
0021 )
0022 if(NOT EXCLUDE_DEPRECATED_BEFORE_AND_AT STREQUAL "CURRENT" AND
0023    EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.61.0)
0024   kservice_executable_tests(
0025     kdbusservicestartertest
0026   )
0027 endif()
0028 
0029 if(NOT EXCLUDE_DEPRECATED_BEFORE_AND_AT STREQUAL "CURRENT" AND
0030    EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.82.0)
0031   kservice_executable_tests(
0032     startserviceby
0033   )
0034 endif()
0035 
0036 add_executable(kmimeassociations_dumper)
0037 ecm_mark_as_test(kmimeassociations_dumper)
0038 
0039 ecm_qt_declare_logging_category(kmimeassociations_dumper
0040     HEADER sycocadebug.h
0041     IDENTIFIER SYCOCA
0042     CATEGORY_NAME kf.service.sycoca
0043 )
0044 target_sources(kmimeassociations_dumper PRIVATE
0045     kmimeassociations_dumper.cpp
0046     ../src/sycoca/kmimeassociations.cpp
0047 )
0048 
0049 target_link_libraries(kmimeassociations_dumper KF5::Service KF5::CoreAddons KF5::ConfigCore)