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

0001 include(ECMMarkAsTest)
0002 find_package(Qt${QT_MAJOR_VERSION} COMPONENTS Test Quick Qml Widgets)
0003 if(NOT Qt${QT_MAJOR_VERSION}_FOUND)
0004   message(STATUS "QML/Test Qt components not found, will not build tests")
0005   return()
0006 endif()
0007 
0008 qt_add_resources(RESOURCES qml.qrc)
0009 
0010 add_executable(main_test main.cpp ${RESOURCES})
0011 ecm_mark_as_test(main_test)
0012 target_link_libraries(
0013     main_test
0014     Qt::DBus
0015     Qt::Test
0016     Qt::Qml
0017     Qt::Quick
0018     Qt::Widgets
0019     KF5::CGroups)