5e7b3c6c73
guix (like nix) used a separate prefix for each package. Thus the header files for qtdeclarative are in /gnu/store/…-qtdeclarative-5.9.1/include/qt5/ while the ones for qtbase are in /gnu/store/…-base-5.9.1/include/qt5/. This means that *each* dependency's include directory must be specified. This is in contrast to a "normal" Unix-system, where all includes end up in /usr/include/qt5 and missing to defined some include-dependencies does often not raise an error. Differential Revision: https://phabricator.kde.org/D8112
94 lines
2.8 KiB
CMake
94 lines
2.8 KiB
CMake
include_directories(${KWIN_SOURCE_DIR})
|
|
add_definitions(-DKWIN_UNIT_TEST)
|
|
########################################################
|
|
# Test TabBox::ClientModel
|
|
########################################################
|
|
set( testTabBoxClientModel_SRCS
|
|
../../tabbox/clientmodel.cpp
|
|
../../tabbox/desktopmodel.cpp
|
|
../../tabbox/tabboxconfig.cpp
|
|
../../tabbox/tabboxhandler.cpp
|
|
../../tabbox/tabbox_logging.cpp
|
|
test_tabbox_clientmodel.cpp
|
|
mock_tabboxhandler.cpp
|
|
mock_tabboxclient.cpp
|
|
)
|
|
|
|
add_executable( testTabBoxClientModel ${testTabBoxClientModel_SRCS} )
|
|
set_target_properties(testTabBoxClientModel PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
|
target_link_libraries( testTabBoxClientModel
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
Qt5::Script
|
|
Qt5::Quick
|
|
Qt5::Test
|
|
Qt5::X11Extras
|
|
KF5::ConfigCore
|
|
KF5::I18n
|
|
KF5::Package
|
|
KF5::WindowSystem
|
|
XCB::XCB
|
|
)
|
|
add_test(kwin-testTabBoxClientModel testTabBoxClientModel)
|
|
ecm_mark_as_test(testTabBoxClientModel)
|
|
|
|
########################################################
|
|
# Test TabBox::TabBoxHandler
|
|
########################################################
|
|
set( testTabBoxHandler_SRCS
|
|
../../tabbox/clientmodel.cpp
|
|
../../tabbox/desktopmodel.cpp
|
|
../../tabbox/tabboxconfig.cpp
|
|
../../tabbox/tabboxhandler.cpp
|
|
../../tabbox/tabbox_logging.cpp
|
|
test_tabbox_handler.cpp
|
|
mock_tabboxhandler.cpp
|
|
mock_tabboxclient.cpp
|
|
)
|
|
|
|
add_executable( testTabBoxHandler ${testTabBoxHandler_SRCS} )
|
|
set_target_properties(testTabBoxHandler PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
|
target_link_libraries( testTabBoxHandler
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
Qt5::Script
|
|
Qt5::Quick
|
|
Qt5::Test
|
|
Qt5::X11Extras
|
|
KF5::ConfigCore
|
|
KF5::I18n
|
|
KF5::Package
|
|
KF5::WindowSystem
|
|
XCB::XCB
|
|
)
|
|
add_test(kwin-testTabBoxHandler testTabBoxHandler)
|
|
ecm_mark_as_test(testTabBoxHandler)
|
|
|
|
########################################################
|
|
# Test TabBox::TabBoxConfig
|
|
########################################################
|
|
set( testTabBoxConfig_SRCS
|
|
../../tabbox/tabboxconfig.cpp
|
|
../../tabbox/tabbox_logging.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
|
|
../../tabbox/desktopchain.cpp
|
|
../../tabbox/tabbox_logging.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)
|