Warning, /plasma/plasma-workspace/shell/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_subdirectory(mockserver) 0002 0003 include(ECMAddTests) 0004 0005 include_directories(${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..) 0006 0007 MACRO(PLASMASHELL_UNIT_TESTS) 0008 FOREACH(_testname ${ARGN}) 0009 ecm_qt_declare_logging_category(${_testname} HEADER debug.h 0010 IDENTIFIER PLASMASHELL 0011 CATEGORY_NAME kde.plasmashell 0012 DEFAULT_SEVERITY Info) 0013 set(USE_SCRIPTING 0) 0014 configure_file(../config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h) 0015 set(test_SRCS 0016 ${_testname}.cpp 0017 debug.cpp 0018 ../alternativeshelper.cpp 0019 ../screenpool.cpp 0020 ../shellcorona.cpp 0021 ../strutmanager.cpp 0022 ../shellcontainmentconfig.cpp 0023 ../osd.cpp 0024 ../panelview.cpp 0025 ../panelconfigview.cpp 0026 ../containmentconfigview.cpp 0027 ../currentcontainmentactionsmodel.cpp 0028 ../panelshadows.cpp 0029 ../desktopview.cpp 0030 ${CMAKE_CURRENT_BINARY_DIR}/../screenpool-debug.cpp ../outputorderwatcher.cpp 0031 ) 0032 set(plasmashell_dbusXML ../dbus/org.kde.PlasmaShell.xml) 0033 qt_add_dbus_adaptor(test_SRCS ${plasmashell_dbusXML} shellcorona.h ShellCorona plasmashelladaptor) 0034 set(krunner_xml ../../krunner/dbus/org.kde.krunner.App.xml) 0035 qt_add_dbus_interface(test_SRCS ${krunner_xml} krunner_interface) 0036 0037 include_directories(${CMAKE_CURRENT_BINARY_DIR}/../mockserver) 0038 add_executable(${_testname} ${test_SRCS}) 0039 target_link_libraries(${_testname} 0040 Qt::Test 0041 Qt::Gui 0042 Qt::WaylandClient 0043 KF5::Activities 0044 KF5::ConfigCore 0045 KF5::Declarative 0046 KF5::Service 0047 KF5::WaylandClient 0048 KF5::WindowSystem 0049 KF5::Package 0050 KF5::Plasma 0051 KF5::PlasmaQuick 0052 KF5::QuickAddons 0053 KF5::XmlGui 0054 KF5::I18n 0055 KF5::GlobalAccel 0056 Qt::Quick 0057 Qt::DBus 0058 Wayland::Client 0059 Wayland::Server 0060 SharedClientTest 0061 ) 0062 if (QT_MAJOR_VERSION STREQUAL "6") 0063 target_link_libraries(${_testname} KF5::ConfigQml) 0064 endif() 0065 if(HAVE_X11) 0066 target_link_libraries(${_testname} XCB::XCB XCB::RANDR) 0067 if (QT_MAJOR_VERSION EQUAL "5") 0068 target_link_libraries(${_testname} Qt::X11Extras) 0069 else() 0070 target_link_libraries(${_testname} Qt::GuiPrivate) 0071 endif() 0072 endif() 0073 if(QT_QTOPENGL_FOUND) 0074 target_link_libraries(${_testname} Qt::OpenGL) 0075 endif() 0076 add_test(NAME ${_testname} COMMAND ${_testname}) 0077 ecm_mark_as_test(${_testname}) 0078 ENDFOREACH(_testname) 0079 ENDMACRO(PLASMASHELL_UNIT_TESTS) 0080 0081 PLASMASHELL_UNIT_TESTS( 0082 screenpooltest 0083 shelltest 0084 )