93e0265e4e
Once in a while, we receive complaints from other fellow KDE developers about the file organization of kwin. This change addresses some of those complaints by moving all of source code in a separate directory, src/, thus making the project structure more traditional. Things such as tests are kept in their own toplevel directories. This change may wreak havoc on merge requests that add new files to kwin, but if a patch modifies an already existing file, git should be smart enough to figure out that the file has been relocated. We may potentially split the src/ directory further to make navigating the source code easier, but hopefully this is good enough already.
20 lines
720 B
CMake
20 lines
720 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 kwineffects)
|
|
ecm_mark_as_test(${_testname})
|
|
endforeach()
|
|
endmacro()
|
|
|
|
kwineffects_unit_tests(
|
|
windowquadlisttest
|
|
timelinetest
|
|
)
|
|
|
|
add_executable(kwinglplatformtest kwinglplatformtest.cpp mock_gl.cpp ../../src/libkwineffects/kwinglplatform.cpp)
|
|
add_test(NAME kwineffects-kwinglplatformtest COMMAND kwinglplatformtest)
|
|
target_link_libraries(kwinglplatformtest Qt::Test Qt::Gui Qt::X11Extras KF5::ConfigCore XCB::XCB)
|
|
ecm_mark_as_test(kwinglplatformtest)
|