b01b03aa84
Another sycoca usage gone.
84 lines
2.3 KiB
CMake
84 lines
2.3 KiB
CMake
include_directories(${KWIN_SOURCE_DIR})
|
|
add_definitions(-DKWIN_UNIT_TEST)
|
|
########################################################
|
|
# Test TabBox::ClientModel
|
|
########################################################
|
|
set( testTabBoxClientModel_SRCS
|
|
../clientmodel.cpp
|
|
../desktopmodel.cpp
|
|
../tabboxconfig.cpp
|
|
../tabboxhandler.cpp
|
|
test_tabbox_clientmodel.cpp
|
|
mock_tabboxhandler.cpp
|
|
mock_tabboxclient.cpp
|
|
)
|
|
|
|
add_executable( testTabBoxClientModel ${testTabBoxClientModel_SRCS} )
|
|
target_link_libraries( testTabBoxClientModel
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
Qt5::Quick
|
|
Qt5::Test
|
|
Qt5::X11Extras
|
|
KF5::I18n
|
|
KF5::Package
|
|
KF5::WindowSystem
|
|
XCB::XCB
|
|
)
|
|
add_test(kwin-testTabBoxClientModel testTabBoxClientModel)
|
|
ecm_mark_as_test(testTabBoxClientModel)
|
|
|
|
########################################################
|
|
# Test TabBox::TabBoxHandler
|
|
########################################################
|
|
set( testTabBoxHandler_SRCS
|
|
../clientmodel.cpp
|
|
../desktopmodel.cpp
|
|
../tabboxconfig.cpp
|
|
../tabboxhandler.cpp
|
|
test_tabbox_handler.cpp
|
|
mock_tabboxhandler.cpp
|
|
mock_tabboxclient.cpp
|
|
)
|
|
|
|
add_executable( testTabBoxHandler ${testTabBoxHandler_SRCS} )
|
|
target_link_libraries( testTabBoxHandler
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
Qt5::Quick
|
|
Qt5::Test
|
|
Qt5::X11Extras
|
|
KF5::I18n
|
|
KF5::Package
|
|
KF5::WindowSystem
|
|
XCB::XCB
|
|
)
|
|
add_test(kwin-testTabBoxHandler testTabBoxHandler)
|
|
ecm_mark_as_test(testTabBoxHandler)
|
|
|
|
########################################################
|
|
# Test TabBox::TabBoxConfig
|
|
########################################################
|
|
set( testTabBoxConfig_SRCS
|
|
../tabboxconfig.cpp
|
|
test_tabbox_config.cpp
|
|
)
|
|
|
|
add_executable( testTabBoxConfig ${testTabBoxConfig_SRCS} )
|
|
target_link_libraries( testTabBoxConfig Qt5::Core Qt5::Test )
|
|
add_test(kwin-testTabBoxConfig testTabBoxConfig)
|
|
ecm_mark_as_test(testTabBoxConfig)
|
|
|
|
|
|
########################################################
|
|
# Test TabBox::DesktopChainManager
|
|
########################################################
|
|
set( testDesktopChain_SRCS
|
|
../desktopchain.cpp
|
|
test_desktopchain.cpp
|
|
)
|
|
|
|
add_executable( testDesktopChain ${testDesktopChain_SRCS} )
|
|
target_link_libraries( testDesktopChain Qt5::Core Qt5::Test )
|
|
add_test(kwin-testDesktopChain testDesktopChain)
|
|
ecm_mark_as_test(testDesktopChain)
|