Warning, /plasma/plasma-desktop/kcms/keyboard/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 macro(KEYBOARD_DAEMON_UNIT_TESTS _testname) 0002 add_executable(${_testname}_test ${_testname}_test.cpp ../${_testname}.cpp ../debug.cpp) 0003 ecm_mark_nongui_executable(${_testname}_test) 0004 ecm_mark_as_test(${_testname}_test) 0005 add_test(NAME kcm-keyboard-${_testname} COMMAND ${_testname}_test) 0006 target_link_libraries(${_testname}_test 0007 Qt::Concurrent 0008 Qt::Widgets 0009 Qt::Xml 0010 Qt::Test 0011 KF6::I18n 0012 KF6::WindowSystem 0013 X11::xkbfile 0014 X11::X11 0015 ) 0016 target_link_libraries(${_testname}_test Qt::GuiPrivate) 0017 endmacro(KEYBOARD_DAEMON_UNIT_TESTS) 0018 0019 keyboard_daemon_unit_tests(xkb_rules) 0020 keyboard_daemon_unit_tests(iso_codes) 0021 0022 add_executable(flags_test flags_test.cpp) 0023 ecm_mark_nongui_executable(flags_test) 0024 ecm_mark_as_test(flags_test) 0025 add_test(NAME kcm-keyboard-flags_test COMMAND flags_test) 0026 target_link_libraries(flags_test 0027 kcm_keyboard_static 0028 Qt::Test 0029 Qt::DBus 0030 Qt::Widgets 0031 KF6::GuiAddons 0032 KF6::KCMUtils 0033 KF6::I18n 0034 Plasma::Plasma 0035 KF6::WindowSystem 0036 XCB::XCB 0037 XCB::XKB 0038 X11::xkbfile 0039 X11::X11 0040 ) 0041 0042 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config/base.1.1.xml ${CMAKE_CURRENT_BINARY_DIR}/config/base.1.1.xml COPYONLY) 0043 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config/base.bad.xml ${CMAKE_CURRENT_BINARY_DIR}/config/base.bad.xml COPYONLY) 0044 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config/base.xml ${CMAKE_CURRENT_BINARY_DIR}/config/base.xml COPYONLY) 0045 0046 add_executable(layout_memory_persister_test layout_memory_persister_test.cpp ../layout_memory.cpp ../layout_memory_persister.cpp) 0047 add_test(NAME kcm-keyboard-keyboard_memory_persister_test COMMAND layout_memory_persister_test) 0048 add_dependencies(layout_memory_persister_test kded_keyboard) 0049 ecm_mark_nongui_executable(layout_memory_persister_test) 0050 ecm_mark_as_test(layout_memory_persister_test) 0051 target_link_libraries(layout_memory_persister_test 0052 kcm_keyboard_static 0053 Qt::Test 0054 ) 0055 0056 if( X11_XTest_FOUND ) 0057 add_executable(keyboard_daemon_test keyboard_daemon_test.cpp ../keyboard_daemon.cpp ../layout_memory.cpp ../layout_memory_persister.cpp ../flags.cpp ../udev_helper.cpp ../x11_helper.cpp ../xkb_helper.cpp ../xinput_helper.cpp ../keyboard_config.cpp ../xkb_rules.cpp ../keyboard_hardware.cpp ../bindings.cpp ../debug.cpp ../layoutnames.cpp) 0058 add_test(NAME kcm-keyboard-keyboard_daemon_test COMMAND keyboard_daemon_test) 0059 add_dependencies(keyboard_daemon_test kded_keyboard) 0060 ecm_mark_nongui_executable(keyboard_daemon_test) 0061 ecm_mark_as_test(keyboard_daemon_test) 0062 target_link_libraries(keyboard_daemon_test 0063 kcm_keyboard_static 0064 Qt::Concurrent 0065 Qt::Xml 0066 Qt::Test 0067 KF6::ConfigCore 0068 KF6::CoreAddons 0069 KF6::KCMUtils 0070 KF6::DBusAddons 0071 KF6::GuiAddons 0072 KF6::I18n 0073 KF6::Notifications 0074 Plasma::Plasma 0075 KF6::GlobalAccel 0076 KF6::WindowSystem 0077 KF6::XmlGui 0078 XCB::XCB 0079 XCB::XKB 0080 X11::xkbfile 0081 ${X11_XTest_LIB} 0082 X11::X11 0083 ) 0084 0085 if (HAVE_XINPUT) 0086 target_link_libraries(keyboard_daemon_test X11::Xi) 0087 endif() 0088 0089 if (HAVE_UDEV) 0090 target_link_libraries(keyboard_daemon_test UDev::UDev) 0091 endif() 0092 endif()