Warning, /plasma/plasma-workspace/libtaskmanager/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(samplewidgetwindowExecutablePath ${CMAKE_BINARY_DIR}/bin/samplewidgetwindow) 0002 configure_file( 0003 ${CMAKE_CURRENT_SOURCE_DIR}/data/windows/samplewidgetwindow.h.in 0004 ${CMAKE_BINARY_DIR}/samplewidgetwindow.h 0005 @ONLY 0006 ) 0007 set(samplewidgetwindow_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/data/windows/samplewidgetwindow.cpp) 0008 add_executable(samplewidgetwindow ${samplewidgetwindow_SOURCES}) 0009 target_link_libraries(samplewidgetwindow Qt::Core Qt::Gui) 0010 0011 ecm_add_tests( 0012 tasktoolstest.cpp 0013 tasksmodeltest.cpp 0014 launchertasksmodeltest.cpp 0015 LINK_LIBRARIES taskmanager Qt::Test KF6::Service KF6::ConfigCore 0016 ) 0017 0018 # Require QX11Info to set window state 0019 ecm_add_test(xwindowtasksmodeltest.cpp LINK_LIBRARIES taskmanager Qt::Test Qt::GuiPrivate XCB::XCB Plasma::Activities KF6::Service KF6::IconThemes KF6::WindowSystem) 0020 set_tests_properties(xwindowtasksmodeltest PROPERTIES TIMEOUT 120) # openbox is slow to respond 0021 0022 # Require kwin_wayland, and KWIN_WAYLAND_NO_PERMISSION_CHECKS doesn't work on FreeBSD 0023 if(NOT CMAKE_SYSTEM_NAME MATCHES "Linux") 0024 return() 0025 endif() 0026 add_executable(waylandtasksmodeltest waylandtasksmodeltest.cpp) 0027 target_link_libraries(waylandtasksmodeltest PRIVATE taskmanager Qt::Test Qt::GuiPrivate Qt::WaylandClient Wayland::Client KF6::Service KF6::IconThemes KF6::WindowSystem) 0028 0029 add_test( 0030 NAME waylandtasksmodeltest 0031 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/waylandtasksmodeltestwrapper.py ${CMAKE_BINARY_DIR}/bin/waylandtasksmodeltest 0032 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 0033 ) 0034 set_tests_properties(waylandtasksmodeltest PROPERTIES TIMEOUT 60)