bf1ce85474
Now that we have Wayland around, there's a whole branch of dependencies that shouldn't be necessary anymore. This allows to build KWin without all of it, allowing us to have a much more compact alignment for cases where all the legacy software isn't necessary anymore. Bundle KWindowSystem X11-specific headers into it too, since it's part of the same process. Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
23 lines
821 B
CMake
23 lines
821 B
CMake
include(ECMMarkAsTest)
|
|
|
|
macro(KWINEFFECTS_UNIT_TESTS)
|
|
foreach(_testname ${ARGN})
|
|
add_executable(${_testname} ${_testname}.cpp)
|
|
add_test(NAME kwineffects-${_testname} COMMAND ${_testname})
|
|
target_link_libraries(${_testname} Qt::Test kwin)
|
|
ecm_mark_as_test(${_testname})
|
|
endforeach()
|
|
endmacro()
|
|
|
|
kwineffects_unit_tests(
|
|
windowquadlisttest
|
|
timelinetest
|
|
)
|
|
|
|
|
|
if (KWIN_BUILD_X11 AND ARGS_LIBS MATCHES .*XCB.*)
|
|
add_executable(kwinglplatformtest kwinglplatformtest.cpp mock_gl.cpp ../../src/opengl/glplatform.cpp ../../src/opengl/openglcontext.cpp ../../src/utils/version.cpp)
|
|
add_test(NAME kwineffects-kwinglplatformtest COMMAND kwinglplatformtest)
|
|
target_link_libraries(kwinglplatformtest Qt::Test Qt::Gui KF6::ConfigCore XCB::XCB)
|
|
ecm_mark_as_test(kwinglplatformtest)
|
|
endif()
|