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_directories(${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..)
0004 
0005 MACRO(PLASMASHELL_UNIT_TESTS)
0006        FOREACH(_testname ${ARGN})
0007                 ecm_qt_declare_logging_category(${_testname} HEADER debug.h
0008                                                IDENTIFIER PLASMASHELL
0009                                                CATEGORY_NAME kde.plasmashell
0010                                                DEFAULT_SEVERITY Info)
0011                 set(USE_SCRIPTING 0)
0012                 configure_file(../config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h)
0013                 set(test_SRCS
0014                     ${_testname}.cpp
0015                     debug.cpp
0016                     ../alternativeshelper.cpp
0017                     ../screenpool.cpp
0018                     ../shellcorona.cpp
0019                     ../strutmanager.cpp
0020                     ../shellcontainmentconfig.cpp
0021                     ../osd.cpp
0022                     ../panelview.cpp
0023                     ../panelconfigview.cpp
0024                     ../containmentconfigview.cpp
0025                     ../currentcontainmentactionsmodel.cpp
0026                     ../panelshadows.cpp
0027                     ../desktopview.cpp
0028                     ${CMAKE_CURRENT_BINARY_DIR}/../screenpool-debug.cpp
0029                     ../autohidescreenedge.cpp
0030                         )
0031                set(plasmashell_dbusXML ../dbus/org.kde.PlasmaShell.xml)
0032                qt_add_dbus_adaptor(test_SRCS ${plasmashell_dbusXML} shellcorona.h ShellCorona plasmashelladaptor)
0033                set(krunner_xml ../../krunner/dbus/org.kde.krunner.App.xml)
0034                qt_add_dbus_interface(test_SRCS ${krunner_xml} krunner_interface)
0035 
0036                include_directories(${CMAKE_CURRENT_BINARY_DIR}/../mockserver)
0037                add_executable(${_testname} ${test_SRCS})
0038                target_link_libraries(${_testname}
0039                             Qt::Test
0040                             Qt::Gui
0041                             Qt::WaylandClient
0042                             Plasma::Activities
0043                             KF6::ConfigCore
0044                             KF6::Service
0045                             Plasma::KWaylandClient
0046                             KF6::WindowSystem
0047                             KF6::Package
0048                             Plasma::Plasma
0049                             Plasma::PlasmaQuick
0050                             KF6::Svg
0051                             KF6::XmlGui
0052                             KF6::I18n
0053                             KF6::GlobalAccel
0054                             Qt::Quick
0055                             Qt::DBus
0056                             Wayland::Client
0057                             Wayland::Server
0058                             PW::KWorkspace
0059                             LayerShellQt::Interface
0060                             SharedClientTest
0061                                      )
0062                target_link_libraries(${_testname} KF6::ConfigQml)
0063                if(HAVE_X11)
0064                   target_link_libraries(${_testname} XCB::XCB XCB::RANDR)
0065                   target_link_libraries(${_testname} Qt::GuiPrivate)
0066                endif()
0067                if(QT_QTOPENGL_FOUND)
0068                    target_link_libraries(${_testname} Qt::OpenGL)
0069                endif()
0070                add_test(NAME ${_testname} COMMAND ${_testname})
0071                ecm_mark_as_test(${_testname})
0072        ENDFOREACH(_testname)
0073 ENDMACRO(PLASMASHELL_UNIT_TESTS)
0074 
0075 PLASMASHELL_UNIT_TESTS(
0076     screenpooltest
0077     shelltest
0078 )
0079